From f31ed1e2483dde5d5b7f2d0c4ed134b34eeba20c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 12 Feb 2026 19:06:43 +0000 Subject: [PATCH 1/2] feat: Add AppHub related condition types to Deployment protos PiperOrigin-RevId: 869245151 Source-Link: https://github.com/googleapis/googleapis/commit/772f19612f4244bec0419e3fffed62ccbb82ae3f Source-Link: https://github.com/googleapis/googleapis-gen/commit/543ac7dd50e3c073a5a7976faa0998a2d88cf25e Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXNhYXNfcGxhdGZvcm0tc2Fhc19zZXJ2aWNlX21nbXQtdjFiZXRhMS8uT3dsQm90LnlhbWwiLCJoIjoiNTQzYWM3ZGQ1MGUzYzA3M2E1YTc5NzZmYWEwOTk4YTJkODhjZjI1ZSJ9 --- .../.gitignore | 22 + .../.repo-metadata.json | 17 + .../.rubocop.yml | 33 + .../.toys.rb | 28 + .../.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../CHANGELOG.md | 2 + .../Gemfile | 11 + .../LICENSE.md | 201 + .../README.md | 154 + .../Rakefile | 169 + .../gapic_metadata.json | 227 + ...platform-saas_service_mgmt-v1beta1.gemspec | 29 + ...saas_platform-saas_service_mgmt-v1beta1.rb | 21 + .../saas_service_mgmt/v1beta1.rb | 48 + .../v1beta1/bindings_override.rb | 77 + .../saas_service_mgmt/v1beta1/rest.rb | 41 + .../v1beta1/saas_deployments.rb | 57 + .../v1beta1/saas_deployments/client.rb | 3802 +++++++++++++++++ .../v1beta1/saas_deployments/credentials.rb | 49 + .../v1beta1/saas_deployments/paths.rb | 185 + .../v1beta1/saas_deployments/rest.rb | 55 + .../v1beta1/saas_deployments/rest/client.rb | 3557 +++++++++++++++ .../saas_deployments/rest/service_stub.rb | 1925 +++++++++ .../v1beta1/saas_rollouts.rb | 57 + .../v1beta1/saas_rollouts/client.rb | 1534 +++++++ .../v1beta1/saas_rollouts/credentials.rb | 49 + .../v1beta1/saas_rollouts/paths.rb | 128 + .../v1beta1/saas_rollouts/rest.rb | 55 + .../v1beta1/saas_rollouts/rest/client.rb | 1429 +++++++ .../saas_rollouts/rest/service_stub.rb | 697 +++ .../saas_service_mgmt/v1beta1/version.rb | 30 + .../saasservicemgmt/v1beta1/common_pb.rb | 58 + .../v1beta1/deployments_resources_pb.rb | 73 + .../v1beta1/deployments_service_pb.rb | 89 + .../deployments_service_services_pb.rb | 105 + .../v1beta1/rollouts_resources_pb.rb | 60 + .../v1beta1/rollouts_service_pb.rb | 65 + .../v1beta1/rollouts_service_services_pb.rb | 65 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 473 ++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/field_info.rb | 88 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../saasservicemgmt/v1beta1/common.rb | 237 + .../v1beta1/deployments_resources.rb | 837 ++++ .../v1beta1/deployments_service.rb | 976 +++++ .../v1beta1/rollouts_resources.rb | 389 ++ .../v1beta1/rollouts_service.rb | 344 ++ .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../snippets/Gemfile | 32 + .../saas_deployments/create_release.rb | 47 + .../snippets/saas_deployments/create_saas.rb | 47 + .../saas_deployments/create_tenant.rb | 47 + .../snippets/saas_deployments/create_unit.rb | 47 + .../saas_deployments/create_unit_kind.rb | 47 + .../saas_deployments/create_unit_operation.rb | 47 + .../saas_deployments/delete_release.rb | 47 + .../snippets/saas_deployments/delete_saas.rb | 47 + .../saas_deployments/delete_tenant.rb | 47 + .../snippets/saas_deployments/delete_unit.rb | 47 + .../saas_deployments/delete_unit_kind.rb | 47 + .../saas_deployments/delete_unit_operation.rb | 47 + .../snippets/saas_deployments/get_release.rb | 47 + .../snippets/saas_deployments/get_saas.rb | 47 + .../snippets/saas_deployments/get_tenant.rb | 47 + .../snippets/saas_deployments/get_unit.rb | 47 + .../saas_deployments/get_unit_kind.rb | 47 + .../saas_deployments/get_unit_operation.rb | 47 + .../saas_deployments/list_releases.rb | 51 + .../snippets/saas_deployments/list_saas.rb | 51 + .../snippets/saas_deployments/list_tenants.rb | 51 + .../saas_deployments/list_unit_kinds.rb | 51 + .../saas_deployments/list_unit_operations.rb | 51 + .../snippets/saas_deployments/list_units.rb | 51 + .../saas_deployments/update_release.rb | 47 + .../snippets/saas_deployments/update_saas.rb | 47 + .../saas_deployments/update_tenant.rb | 47 + .../snippets/saas_deployments/update_unit.rb | 47 + .../saas_deployments/update_unit_kind.rb | 47 + .../saas_deployments/update_unit_operation.rb | 47 + .../snippets/saas_rollouts/create_rollout.rb | 47 + .../saas_rollouts/create_rollout_kind.rb | 47 + .../snippets/saas_rollouts/delete_rollout.rb | 47 + .../saas_rollouts/delete_rollout_kind.rb | 47 + .../snippets/saas_rollouts/get_rollout.rb | 47 + .../saas_rollouts/get_rollout_kind.rb | 47 + .../saas_rollouts/list_rollout_kinds.rb | 51 + .../snippets/saas_rollouts/list_rollouts.rb | 51 + .../snippets/saas_rollouts/update_rollout.rb | 47 + .../saas_rollouts/update_rollout_kind.rb | 47 + ....saasplatform.saasservicemgmt.v1beta1.json | 1615 +++++++ .../v1beta1/saas_deployments_paths_test.rb | 139 + .../v1beta1/saas_deployments_rest_test.rb | 1803 ++++++++ .../v1beta1/saas_deployments_test.rb | 2042 +++++++++ .../v1beta1/saas_rollouts_paths_test.rb | 103 + .../v1beta1/saas_rollouts_rest_test.rb | 667 +++ .../v1beta1/saas_rollouts_test.rb | 750 ++++ .../test/helper.rb | 25 + 104 files changed, 28790 insertions(+) create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources_pb.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb create mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json new file mode 100644 index 000000000000..97994f56b769 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_id": "saasservicemgmt.googleapis.com", + "api_shortname": "saasservicemgmt", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-saas_platform-saas_service_mgmt-v1beta1/latest", + "distribution_name": "google-cloud-saas_platform-saas_service_mgmt-v1beta1", + "is_cloud": true, + "language": "ruby", + "name": "saasservicemgmt", + "name_pretty": "SaaS Runtime V1BETA1 API", + "product_documentation": "https://cloud.google.com/saas-runtime/docs/overview", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "SaaS Runtime lets you store, host, manage, and monitor software as a service (SaaS) applications on Google Cloud. Note that google-cloud-saas_platform-saas_service_mgmt-v1beta1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-saas_platform-saas_service_mgmt instead. See the readme for more details.", + "ruby-cloud-product-url": "https://cloud.google.com/saas-runtime/docs/overview", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml new file mode 100644 index 000000000000..981315800771 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb" diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts new file mode 100644 index 000000000000..66921bbab993 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="SaaS Runtime V1BETA1 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md new file mode 100644 index 000000000000..60e04154887d --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-saas_platform-saas_service_mgmt-v1beta1 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-saas_platform-saas_service_mgmt-v1beta1 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-saas_platform-saas_service_mgmt-v1beta1 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile new file mode 100644 index 000000000000..6442df18fa2f --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile @@ -0,0 +1,11 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.31.1" +gem "minitest", "~> 5.22" +gem "minitest-focus", "~> 1.4" +gem "minitest-rg", "~> 5.3" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md new file mode 100644 index 000000000000..027ccdec4891 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the SaaS Runtime V1BETA1 API + +Model, deploy, and operate your SaaS at scale. + +SaaS Runtime lets you store, host, manage, and monitor software as a service (SaaS) applications on Google Cloud. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the SaaS Runtime V1BETA1 API. Most users should consider using +the main client gem, +[google-cloud-saas_platform-saas_service_mgmt](https://rubygems.org/gems/google-cloud-saas_platform-saas_service_mgmt). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-saas_platform-saas_service_mgmt-v1beta1 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/saasservicemgmt.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new +request = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new # (request fields as keyword arguments...) +response = client.list_saas request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-saas_platform-saas_service_mgmt-v1beta1/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/saas-runtime/docs/overview) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" +require "logger" + +client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-saas_platform-saas_service_mgmt`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-saas_platform-saas_service_mgmt-v1beta1`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-saas_platform-saas_service_mgmt`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-saas_platform-saas_service_mgmt-v1beta1`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile new file mode 100644 index 000000000000..78bfe245658f --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-saas_platform-saas_service_mgmt-v1beta1 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["GOOGLE_CLOUD_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials" + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["GOOGLE_CLOUD_PROJECT"] = project + ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project + ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-saas_platform-saas_service_mgmt-v1beta1" + header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json new file mode 100644 index 000000000000..be051f6cea19 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json @@ -0,0 +1,227 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.cloud.saasplatform.saasservicemgmt.v1beta1", + "libraryPackage": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1", + "services": { + "SaasDeployments": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client", + "rpcs": { + "ListSaas": { + "methods": [ + "list_saas" + ] + }, + "GetSaas": { + "methods": [ + "get_saas" + ] + }, + "CreateSaas": { + "methods": [ + "create_saas" + ] + }, + "UpdateSaas": { + "methods": [ + "update_saas" + ] + }, + "DeleteSaas": { + "methods": [ + "delete_saas" + ] + }, + "ListTenants": { + "methods": [ + "list_tenants" + ] + }, + "GetTenant": { + "methods": [ + "get_tenant" + ] + }, + "CreateTenant": { + "methods": [ + "create_tenant" + ] + }, + "UpdateTenant": { + "methods": [ + "update_tenant" + ] + }, + "DeleteTenant": { + "methods": [ + "delete_tenant" + ] + }, + "ListUnitKinds": { + "methods": [ + "list_unit_kinds" + ] + }, + "GetUnitKind": { + "methods": [ + "get_unit_kind" + ] + }, + "CreateUnitKind": { + "methods": [ + "create_unit_kind" + ] + }, + "UpdateUnitKind": { + "methods": [ + "update_unit_kind" + ] + }, + "DeleteUnitKind": { + "methods": [ + "delete_unit_kind" + ] + }, + "ListUnits": { + "methods": [ + "list_units" + ] + }, + "GetUnit": { + "methods": [ + "get_unit" + ] + }, + "CreateUnit": { + "methods": [ + "create_unit" + ] + }, + "UpdateUnit": { + "methods": [ + "update_unit" + ] + }, + "DeleteUnit": { + "methods": [ + "delete_unit" + ] + }, + "ListUnitOperations": { + "methods": [ + "list_unit_operations" + ] + }, + "GetUnitOperation": { + "methods": [ + "get_unit_operation" + ] + }, + "CreateUnitOperation": { + "methods": [ + "create_unit_operation" + ] + }, + "UpdateUnitOperation": { + "methods": [ + "update_unit_operation" + ] + }, + "DeleteUnitOperation": { + "methods": [ + "delete_unit_operation" + ] + }, + "ListReleases": { + "methods": [ + "list_releases" + ] + }, + "GetRelease": { + "methods": [ + "get_release" + ] + }, + "CreateRelease": { + "methods": [ + "create_release" + ] + }, + "UpdateRelease": { + "methods": [ + "update_release" + ] + }, + "DeleteRelease": { + "methods": [ + "delete_release" + ] + } + } + } + } + }, + "SaasRollouts": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client", + "rpcs": { + "ListRollouts": { + "methods": [ + "list_rollouts" + ] + }, + "GetRollout": { + "methods": [ + "get_rollout" + ] + }, + "CreateRollout": { + "methods": [ + "create_rollout" + ] + }, + "UpdateRollout": { + "methods": [ + "update_rollout" + ] + }, + "DeleteRollout": { + "methods": [ + "delete_rollout" + ] + }, + "ListRolloutKinds": { + "methods": [ + "list_rollout_kinds" + ] + }, + "GetRolloutKind": { + "methods": [ + "get_rollout_kind" + ] + }, + "CreateRolloutKind": { + "methods": [ + "create_rollout_kind" + ] + }, + "UpdateRolloutKind": { + "methods": [ + "update_rollout_kind" + ] + }, + "DeleteRolloutKind": { + "methods": [ + "delete_rollout_kind" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec new file mode 100644 index 000000000000..47e32029da1c --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec @@ -0,0 +1,29 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-saas_platform-saas_service_mgmt-v1beta1" + gem.version = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "SaaS Runtime lets you store, host, manage, and monitor software as a service (SaaS) applications on Google Cloud. Note that google-cloud-saas_platform-saas_service_mgmt-v1beta1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-saas_platform-saas_service_mgmt instead. See the readme for more details." + gem.summary = "Model, deploy, and operate your SaaS at scale." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.1" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "google-cloud-location", "~> 1.0" +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb new file mode 100644 index 000000000000..80bcd766d674 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb new file mode 100644 index 000000000000..791947b8231a --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + module V1beta1 + end + end + end + end +end + +helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb new file mode 100644 index 000000000000..04229d9920ee --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb @@ -0,0 +1,77 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + ## + # @example Loading just the REST part of this package, including all its services, and instantiating a REST client + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + module V1beta1 + ## + # @private + # Initialize the mixin bindings configuration + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + + default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config + default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ + + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1beta1/{name}/locations", + matches: [ + ["name", %r{^projects/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config + end + yield @configure if block_given? + @configure + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb new file mode 100644 index 000000000000..f8c683743050 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb @@ -0,0 +1,41 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + module V1beta1 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb new file mode 100644 index 000000000000..11bbdfccaec4 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + ## + # Manages the deployment of SaaS services. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + module SaasDeployments + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "saas_deployments", "helpers.rb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb new file mode 100644 index 000000000000..328a3619f2ee --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb @@ -0,0 +1,3802 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" +require "google/cloud/location" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasDeployments + ## + # Client for the SaasDeployments service. + # + # Manages the deployment of SaaS services. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :saas_deployments_stub + + ## + # Configure the SaasDeployments Client class. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SaasDeployments clients + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.list_saas.timeout = 80.0 + default_config.rpcs.list_saas.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_saas.timeout = 30.0 + default_config.rpcs.get_saas.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_saas.timeout = 30.0 + + default_config.rpcs.update_saas.timeout = 30.0 + + default_config.rpcs.delete_saas.timeout = 30.0 + default_config.rpcs.delete_saas.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_tenants.timeout = 80.0 + default_config.rpcs.list_tenants.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_tenant.timeout = 30.0 + default_config.rpcs.get_tenant.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_tenant.timeout = 30.0 + + default_config.rpcs.update_tenant.timeout = 30.0 + + default_config.rpcs.delete_tenant.timeout = 30.0 + default_config.rpcs.delete_tenant.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_unit_kinds.timeout = 80.0 + default_config.rpcs.list_unit_kinds.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_unit_kind.timeout = 30.0 + default_config.rpcs.get_unit_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_unit_kind.timeout = 30.0 + + default_config.rpcs.update_unit_kind.timeout = 80.0 + + default_config.rpcs.delete_unit_kind.timeout = 80.0 + default_config.rpcs.delete_unit_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_units.timeout = 80.0 + default_config.rpcs.list_units.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_unit.timeout = 30.0 + default_config.rpcs.get_unit.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_unit.timeout = 30.0 + + default_config.rpcs.update_unit.timeout = 30.0 + + default_config.rpcs.delete_unit.timeout = 30.0 + default_config.rpcs.delete_unit.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_unit_operations.timeout = 80.0 + default_config.rpcs.list_unit_operations.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_unit_operation.timeout = 30.0 + default_config.rpcs.get_unit_operation.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_unit_operation.timeout = 30.0 + + default_config.rpcs.update_unit_operation.timeout = 30.0 + + default_config.rpcs.delete_unit_operation.timeout = 30.0 + default_config.rpcs.delete_unit_operation.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_releases.timeout = 80.0 + default_config.rpcs.list_releases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_release.timeout = 30.0 + default_config.rpcs.get_release.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_release.timeout = 30.0 + + default_config.rpcs.update_release.timeout = 30.0 + + default_config.rpcs.delete_release.timeout = 30.0 + default_config.rpcs.delete_release.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SaasDeployments Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @saas_deployments_stub.universe_domain + end + + ## + # Create a new SaasDeployments client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SaasDeployments client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @saas_deployments_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @saas_deployments_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @saas_deployments_stub.endpoint + config.universe_domain = @saas_deployments_stub.universe_domain + config.logger = @saas_deployments_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @saas_deployments_stub.logger + end + + # Service calls + + ## + # Retrieve a collection of saas. + # + # @overload list_saas(request, options = nil) + # Pass arguments to `list_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_saas(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the saas. + # @param page_size [::Integer] + # The maximum number of saas to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new + # + # # Call the list_saas method. + # result = client.list_saas request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p item + # end + # + def list_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_saas.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :list_saas, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_saas, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single saas. + # + # @overload get_saas(request, options = nil) + # Pass arguments to `get_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_saas(name: nil) + # Pass arguments to `get_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new + # + # # Call the get_saas method. + # result = client.get_saas request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p result + # + def get_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_saas.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :get_saas, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new saas. + # + # @overload create_saas(request, options = nil) + # Pass arguments to `create_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_saas(parent: nil, saas_id: nil, saas: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the saas. + # @param saas_id [::String] + # Required. The ID value for the new saas. + # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] + # Required. The desired state for the saas. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new + # + # # Call the create_saas method. + # result = client.create_saas request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p result + # + def create_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_saas.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :create_saas, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single saas. + # + # @overload update_saas(request, options = nil) + # Pass arguments to `update_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_saas(saas: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] + # Required. The desired state for the saas. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Saas resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Saas will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new + # + # # Call the update_saas method. + # result = client.update_saas request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p result + # + def update_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.saas&.name + header_params["saas.name"] = request.saas.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_saas.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :update_saas, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single saas. + # + # @overload delete_saas(request, options = nil) + # Pass arguments to `delete_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_saas(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the saas. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the saas. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new + # + # # Call the delete_saas method. + # result = client.delete_saas request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_saas.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :delete_saas, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of tenants. + # + # @overload list_tenants(request, options = nil) + # Pass arguments to `list_tenants` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_tenants(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_tenants` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the tenant. + # @param page_size [::Integer] + # The maximum number of tenants to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new + # + # # Call the list_tenants method. + # result = client.list_tenants request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p item + # end + # + def list_tenants request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_tenants.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_tenants.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_tenants.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :list_tenants, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_tenants, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single tenant. + # + # @overload get_tenant(request, options = nil) + # Pass arguments to `get_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_tenant(name: nil) + # Pass arguments to `get_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new + # + # # Call the get_tenant method. + # result = client.get_tenant request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p result + # + def get_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_tenant.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :get_tenant, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new tenant. + # + # @overload create_tenant(request, options = nil) + # Pass arguments to `create_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_tenant(parent: nil, tenant_id: nil, tenant: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the tenant. + # @param tenant_id [::String] + # Required. The ID value for the new tenant. + # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] + # Required. The desired state for the tenant. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new + # + # # Call the create_tenant method. + # result = client.create_tenant request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p result + # + def create_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_tenant.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :create_tenant, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single tenant. + # + # @overload update_tenant(request, options = nil) + # Pass arguments to `update_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_tenant(tenant: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] + # Required. The desired state for the tenant. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Tenant resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Tenant will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new + # + # # Call the update_tenant method. + # result = client.update_tenant request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p result + # + def update_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.tenant&.name + header_params["tenant.name"] = request.tenant.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_tenant.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :update_tenant, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single tenant. + # + # @overload delete_tenant(request, options = nil) + # Pass arguments to `delete_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_tenant(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the tenant. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the tenant. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new + # + # # Call the delete_tenant method. + # result = client.delete_tenant request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :delete_tenant, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of unit kinds. + # + # @overload list_unit_kinds(request, options = nil) + # Pass arguments to `list_unit_kinds` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_unit_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_unit_kinds` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit kind. + # @param page_size [::Integer] + # The maximum number of unit kinds to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new + # + # # Call the list_unit_kinds method. + # result = client.list_unit_kinds request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p item + # end + # + def list_unit_kinds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_unit_kinds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_unit_kinds.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_unit_kinds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :list_unit_kinds, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_unit_kinds, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single unit kind. + # + # @overload get_unit_kind(request, options = nil) + # Pass arguments to `get_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_unit_kind(name: nil) + # Pass arguments to `get_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new + # + # # Call the get_unit_kind method. + # result = client.get_unit_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p result + # + def get_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_unit_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :get_unit_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new unit kind. + # + # @overload create_unit_kind(request, options = nil) + # Pass arguments to `create_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_unit_kind(parent: nil, unit_kind_id: nil, unit_kind: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit kind. + # @param unit_kind_id [::String] + # Required. The ID value for the new unit kind. + # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] + # Required. The desired state for the unit kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new + # + # # Call the create_unit_kind method. + # result = client.create_unit_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p result + # + def create_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_unit_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :create_unit_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single unit kind. + # + # @overload update_unit_kind(request, options = nil) + # Pass arguments to `update_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_unit_kind(unit_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] + # Required. The desired state for the unit kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # UnitKind resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # UnitKind will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new + # + # # Call the update_unit_kind method. + # result = client.update_unit_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p result + # + def update_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.unit_kind&.name + header_params["unit_kind.name"] = request.unit_kind.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_unit_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :update_unit_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single unit kind. + # + # @overload delete_unit_kind(request, options = nil) + # Pass arguments to `delete_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_unit_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the unit kind. This + # is used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit kind. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new + # + # # Call the delete_unit_kind method. + # result = client.delete_unit_kind request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_unit_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :delete_unit_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of units. + # + # @overload list_units(request, options = nil) + # Pass arguments to `list_units` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_units(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_units` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit. + # @param page_size [::Integer] + # The maximum number of units to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new + # + # # Call the list_units method. + # result = client.list_units request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p item + # end + # + def list_units request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_units.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_units.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_units.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :list_units, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_units, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single unit. + # + # @overload get_unit(request, options = nil) + # Pass arguments to `get_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_unit(name: nil) + # Pass arguments to `get_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new + # + # # Call the get_unit method. + # result = client.get_unit request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p result + # + def get_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_unit.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :get_unit, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new unit. + # + # @overload create_unit(request, options = nil) + # Pass arguments to `create_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_unit(parent: nil, unit_id: nil, unit: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit. + # @param unit_id [::String] + # Required. The ID value for the new unit. + # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] + # Required. The desired state for the unit. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new + # + # # Call the create_unit method. + # result = client.create_unit request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p result + # + def create_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_unit.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :create_unit, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single unit. + # + # @overload update_unit(request, options = nil) + # Pass arguments to `update_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_unit(unit: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] + # Required. The desired state for the unit. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Unit resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Unit will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new + # + # # Call the update_unit method. + # result = client.update_unit request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p result + # + def update_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.unit&.name + header_params["unit.name"] = request.unit.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_unit.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :update_unit, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single unit. + # + # @overload delete_unit(request, options = nil) + # Pass arguments to `delete_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_unit(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the unit. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new + # + # # Call the delete_unit method. + # result = client.delete_unit request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_unit.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :delete_unit, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of unit operations. + # + # @overload list_unit_operations(request, options = nil) + # Pass arguments to `list_unit_operations` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_unit_operations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_unit_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit operation. + # @param page_size [::Integer] + # The maximum number of unit operations to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new + # + # # Call the list_unit_operations method. + # result = client.list_unit_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p item + # end + # + def list_unit_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_unit_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_unit_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_unit_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :list_unit_operations, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_unit_operations, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single unit operation. + # + # @overload get_unit_operation(request, options = nil) + # Pass arguments to `get_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_unit_operation(name: nil) + # Pass arguments to `get_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new + # + # # Call the get_unit_operation method. + # result = client.get_unit_operation request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p result + # + def get_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_unit_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :get_unit_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new unit operation. + # + # @overload create_unit_operation(request, options = nil) + # Pass arguments to `create_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_unit_operation(parent: nil, unit_operation_id: nil, unit_operation: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit operation. + # @param unit_operation_id [::String] + # Required. The ID value for the new unit operation. + # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] + # Required. The desired state for the unit operation. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new + # + # # Call the create_unit_operation method. + # result = client.create_unit_operation request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p result + # + def create_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_unit_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :create_unit_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single unit operation. + # + # @overload update_unit_operation(request, options = nil) + # Pass arguments to `update_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_unit_operation(unit_operation: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] + # Required. The desired state for the unit operation. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # UnitOperation resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # UnitOperation will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new + # + # # Call the update_unit_operation method. + # result = client.update_unit_operation request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p result + # + def update_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.unit_operation&.name + header_params["unit_operation.name"] = request.unit_operation.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_unit_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :update_unit_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single unit operation. + # + # @overload delete_unit_operation(request, options = nil) + # Pass arguments to `delete_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_unit_operation(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the unit operation. + # This is used with state-changing methods to prevent accidental overwrites + # when multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit operation. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new + # + # # Call the delete_unit_operation method. + # result = client.delete_unit_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_unit_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :delete_unit_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of releases. + # + # @overload list_releases(request, options = nil) + # Pass arguments to `list_releases` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_releases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_releases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the release. + # @param page_size [::Integer] + # The maximum number of releases to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new + # + # # Call the list_releases method. + # result = client.list_releases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p item + # end + # + def list_releases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_releases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_releases.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_releases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :list_releases, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_releases, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single release. + # + # @overload get_release(request, options = nil) + # Pass arguments to `get_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_release(name: nil) + # Pass arguments to `get_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new + # + # # Call the get_release method. + # result = client.get_release request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p result + # + def get_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_release.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :get_release, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new release. + # + # @overload create_release(request, options = nil) + # Pass arguments to `create_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_release(parent: nil, release_id: nil, release: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the release. + # @param release_id [::String] + # Required. The ID value for the new release. + # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] + # Required. The desired state for the release. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new + # + # # Call the create_release method. + # result = client.create_release request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p result + # + def create_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_release.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :create_release, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single release. + # + # @overload update_release(request, options = nil) + # Pass arguments to `update_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_release(release: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] + # Required. The desired state for the release. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Release resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Release will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new + # + # # Call the update_release method. + # result = client.update_release request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p result + # + def update_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.release&.name + header_params["release.name"] = request.release.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_release.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :update_release, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single release. + # + # @overload delete_release(request, options = nil) + # Pass arguments to `delete_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_release(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the release. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the release. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new + # + # # Call the delete_release method. + # result = client.delete_release request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_release.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.call_rpc :delete_release, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the SaasDeployments API. + # + # This class represents the configuration for SaasDeployments, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_saas to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_saas.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_saas.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the SaasDeployments API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :list_saas + ## + # RPC-specific configuration for `get_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :get_saas + ## + # RPC-specific configuration for `create_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :create_saas + ## + # RPC-specific configuration for `update_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :update_saas + ## + # RPC-specific configuration for `delete_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_saas + ## + # RPC-specific configuration for `list_tenants` + # @return [::Gapic::Config::Method] + # + attr_reader :list_tenants + ## + # RPC-specific configuration for `get_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :get_tenant + ## + # RPC-specific configuration for `create_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :create_tenant + ## + # RPC-specific configuration for `update_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :update_tenant + ## + # RPC-specific configuration for `delete_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_tenant + ## + # RPC-specific configuration for `list_unit_kinds` + # @return [::Gapic::Config::Method] + # + attr_reader :list_unit_kinds + ## + # RPC-specific configuration for `get_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :get_unit_kind + ## + # RPC-specific configuration for `create_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :create_unit_kind + ## + # RPC-specific configuration for `update_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :update_unit_kind + ## + # RPC-specific configuration for `delete_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_unit_kind + ## + # RPC-specific configuration for `list_units` + # @return [::Gapic::Config::Method] + # + attr_reader :list_units + ## + # RPC-specific configuration for `get_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :get_unit + ## + # RPC-specific configuration for `create_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :create_unit + ## + # RPC-specific configuration for `update_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :update_unit + ## + # RPC-specific configuration for `delete_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_unit + ## + # RPC-specific configuration for `list_unit_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_unit_operations + ## + # RPC-specific configuration for `get_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_unit_operation + ## + # RPC-specific configuration for `create_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_unit_operation + ## + # RPC-specific configuration for `update_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :update_unit_operation + ## + # RPC-specific configuration for `delete_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_unit_operation + ## + # RPC-specific configuration for `list_releases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_releases + ## + # RPC-specific configuration for `get_release` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release + ## + # RPC-specific configuration for `create_release` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release + ## + # RPC-specific configuration for `update_release` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release + ## + # RPC-specific configuration for `delete_release` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release + + # @private + def initialize parent_rpcs = nil + list_saas_config = parent_rpcs.list_saas if parent_rpcs.respond_to? :list_saas + @list_saas = ::Gapic::Config::Method.new list_saas_config + get_saas_config = parent_rpcs.get_saas if parent_rpcs.respond_to? :get_saas + @get_saas = ::Gapic::Config::Method.new get_saas_config + create_saas_config = parent_rpcs.create_saas if parent_rpcs.respond_to? :create_saas + @create_saas = ::Gapic::Config::Method.new create_saas_config + update_saas_config = parent_rpcs.update_saas if parent_rpcs.respond_to? :update_saas + @update_saas = ::Gapic::Config::Method.new update_saas_config + delete_saas_config = parent_rpcs.delete_saas if parent_rpcs.respond_to? :delete_saas + @delete_saas = ::Gapic::Config::Method.new delete_saas_config + list_tenants_config = parent_rpcs.list_tenants if parent_rpcs.respond_to? :list_tenants + @list_tenants = ::Gapic::Config::Method.new list_tenants_config + get_tenant_config = parent_rpcs.get_tenant if parent_rpcs.respond_to? :get_tenant + @get_tenant = ::Gapic::Config::Method.new get_tenant_config + create_tenant_config = parent_rpcs.create_tenant if parent_rpcs.respond_to? :create_tenant + @create_tenant = ::Gapic::Config::Method.new create_tenant_config + update_tenant_config = parent_rpcs.update_tenant if parent_rpcs.respond_to? :update_tenant + @update_tenant = ::Gapic::Config::Method.new update_tenant_config + delete_tenant_config = parent_rpcs.delete_tenant if parent_rpcs.respond_to? :delete_tenant + @delete_tenant = ::Gapic::Config::Method.new delete_tenant_config + list_unit_kinds_config = parent_rpcs.list_unit_kinds if parent_rpcs.respond_to? :list_unit_kinds + @list_unit_kinds = ::Gapic::Config::Method.new list_unit_kinds_config + get_unit_kind_config = parent_rpcs.get_unit_kind if parent_rpcs.respond_to? :get_unit_kind + @get_unit_kind = ::Gapic::Config::Method.new get_unit_kind_config + create_unit_kind_config = parent_rpcs.create_unit_kind if parent_rpcs.respond_to? :create_unit_kind + @create_unit_kind = ::Gapic::Config::Method.new create_unit_kind_config + update_unit_kind_config = parent_rpcs.update_unit_kind if parent_rpcs.respond_to? :update_unit_kind + @update_unit_kind = ::Gapic::Config::Method.new update_unit_kind_config + delete_unit_kind_config = parent_rpcs.delete_unit_kind if parent_rpcs.respond_to? :delete_unit_kind + @delete_unit_kind = ::Gapic::Config::Method.new delete_unit_kind_config + list_units_config = parent_rpcs.list_units if parent_rpcs.respond_to? :list_units + @list_units = ::Gapic::Config::Method.new list_units_config + get_unit_config = parent_rpcs.get_unit if parent_rpcs.respond_to? :get_unit + @get_unit = ::Gapic::Config::Method.new get_unit_config + create_unit_config = parent_rpcs.create_unit if parent_rpcs.respond_to? :create_unit + @create_unit = ::Gapic::Config::Method.new create_unit_config + update_unit_config = parent_rpcs.update_unit if parent_rpcs.respond_to? :update_unit + @update_unit = ::Gapic::Config::Method.new update_unit_config + delete_unit_config = parent_rpcs.delete_unit if parent_rpcs.respond_to? :delete_unit + @delete_unit = ::Gapic::Config::Method.new delete_unit_config + list_unit_operations_config = parent_rpcs.list_unit_operations if parent_rpcs.respond_to? :list_unit_operations + @list_unit_operations = ::Gapic::Config::Method.new list_unit_operations_config + get_unit_operation_config = parent_rpcs.get_unit_operation if parent_rpcs.respond_to? :get_unit_operation + @get_unit_operation = ::Gapic::Config::Method.new get_unit_operation_config + create_unit_operation_config = parent_rpcs.create_unit_operation if parent_rpcs.respond_to? :create_unit_operation + @create_unit_operation = ::Gapic::Config::Method.new create_unit_operation_config + update_unit_operation_config = parent_rpcs.update_unit_operation if parent_rpcs.respond_to? :update_unit_operation + @update_unit_operation = ::Gapic::Config::Method.new update_unit_operation_config + delete_unit_operation_config = parent_rpcs.delete_unit_operation if parent_rpcs.respond_to? :delete_unit_operation + @delete_unit_operation = ::Gapic::Config::Method.new delete_unit_operation_config + list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases + @list_releases = ::Gapic::Config::Method.new list_releases_config + get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release + @get_release = ::Gapic::Config::Method.new get_release_config + create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release + @create_release = ::Gapic::Config::Method.new create_release_config + update_release_config = parent_rpcs.update_release if parent_rpcs.respond_to? :update_release + @update_release = ::Gapic::Config::Method.new update_release_config + delete_release_config = parent_rpcs.delete_release if parent_rpcs.respond_to? :delete_release + @delete_release = ::Gapic::Config::Method.new delete_release_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb new file mode 100644 index 000000000000..2d24511b8897 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasDeployments + # Credentials for the SaasDeployments API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb new file mode 100644 index 000000000000..6d3457f8559d --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb @@ -0,0 +1,185 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasDeployments + # Path helper methods for the SaasDeployments API. + module Paths + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified Release resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/releases/{release}` + # + # @param project [String] + # @param location [String] + # @param release [String] + # + # @return [::String] + def release_path project:, location:, release: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/releases/#{release}" + end + + ## + # Create a fully-qualified Rollout resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/rollouts/{rollout_id}` + # + # @param project [String] + # @param location [String] + # @param rollout_id [String] + # + # @return [::String] + def rollout_path project:, location:, rollout_id: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/rollouts/#{rollout_id}" + end + + ## + # Create a fully-qualified Saas resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/saas/{saas}` + # + # @param project [String] + # @param location [String] + # @param saas [String] + # + # @return [::String] + def saas_path project:, location:, saas: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/saas/#{saas}" + end + + ## + # Create a fully-qualified Tenant resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/tenants/{tenant}` + # + # @param project [String] + # @param location [String] + # @param tenant [String] + # + # @return [::String] + def tenant_path project:, location:, tenant: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/tenants/#{tenant}" + end + + ## + # Create a fully-qualified Unit resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/units/{unit}` + # + # @param project [String] + # @param location [String] + # @param unit [String] + # + # @return [::String] + def unit_path project:, location:, unit: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/units/#{unit}" + end + + ## + # Create a fully-qualified UnitKind resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/unitKinds/{unit_kind}` + # + # @param project [String] + # @param location [String] + # @param unit_kind [String] + # + # @return [::String] + def unit_kind_path project:, location:, unit_kind: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/unitKinds/#{unit_kind}" + end + + ## + # Create a fully-qualified UnitOperation resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/unitOperations/{unit_operation}` + # + # @param project [String] + # @param location [String] + # @param unit_operation [String] + # + # @return [::String] + def unit_operation_path project:, location:, unit_operation: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/unitOperations/#{unit_operation}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb new file mode 100644 index 000000000000..d312932d45ac --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + ## + # Manages the deployment of SaaS services. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + module SaasDeployments + # Client for the REST transport + module Rest + end + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb new file mode 100644 index 000000000000..242da77bafad --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb @@ -0,0 +1,3557 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub" +require "google/cloud/location/rest" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasDeployments + module Rest + ## + # REST client for the SaasDeployments service. + # + # Manages the deployment of SaaS services. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :saas_deployments_stub + + ## + # Configure the SaasDeployments Client class. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SaasDeployments clients + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.list_saas.timeout = 80.0 + default_config.rpcs.list_saas.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_saas.timeout = 30.0 + default_config.rpcs.get_saas.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_saas.timeout = 30.0 + + default_config.rpcs.update_saas.timeout = 30.0 + + default_config.rpcs.delete_saas.timeout = 30.0 + default_config.rpcs.delete_saas.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_tenants.timeout = 80.0 + default_config.rpcs.list_tenants.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_tenant.timeout = 30.0 + default_config.rpcs.get_tenant.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_tenant.timeout = 30.0 + + default_config.rpcs.update_tenant.timeout = 30.0 + + default_config.rpcs.delete_tenant.timeout = 30.0 + default_config.rpcs.delete_tenant.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_unit_kinds.timeout = 80.0 + default_config.rpcs.list_unit_kinds.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_unit_kind.timeout = 30.0 + default_config.rpcs.get_unit_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_unit_kind.timeout = 30.0 + + default_config.rpcs.update_unit_kind.timeout = 80.0 + + default_config.rpcs.delete_unit_kind.timeout = 80.0 + default_config.rpcs.delete_unit_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_units.timeout = 80.0 + default_config.rpcs.list_units.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_unit.timeout = 30.0 + default_config.rpcs.get_unit.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_unit.timeout = 30.0 + + default_config.rpcs.update_unit.timeout = 30.0 + + default_config.rpcs.delete_unit.timeout = 30.0 + default_config.rpcs.delete_unit.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_unit_operations.timeout = 80.0 + default_config.rpcs.list_unit_operations.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_unit_operation.timeout = 30.0 + default_config.rpcs.get_unit_operation.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_unit_operation.timeout = 30.0 + + default_config.rpcs.update_unit_operation.timeout = 30.0 + + default_config.rpcs.delete_unit_operation.timeout = 30.0 + default_config.rpcs.delete_unit_operation.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_releases.timeout = 80.0 + default_config.rpcs.list_releases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_release.timeout = 30.0 + default_config.rpcs.get_release.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_release.timeout = 30.0 + + default_config.rpcs.update_release.timeout = 30.0 + + default_config.rpcs.delete_release.timeout = 30.0 + default_config.rpcs.delete_release.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SaasDeployments Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @saas_deployments_stub.universe_domain + end + + ## + # Create a new SaasDeployments REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SaasDeployments client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @saas_deployments_stub = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @saas_deployments_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @saas_deployments_stub.endpoint + config.universe_domain = @saas_deployments_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @saas_deployments_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @saas_deployments_stub.logger + end + + # Service calls + + ## + # Retrieve a collection of saas. + # + # @overload list_saas(request, options = nil) + # Pass arguments to `list_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_saas(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the saas. + # @param page_size [::Integer] + # The maximum number of saas to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new + # + # # Call the list_saas method. + # result = client.list_saas request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p item + # end + # + def list_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_saas.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.list_saas request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_saas, "saas", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single saas. + # + # @overload get_saas(request, options = nil) + # Pass arguments to `get_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_saas(name: nil) + # Pass arguments to `get_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new + # + # # Call the get_saas method. + # result = client.get_saas request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p result + # + def get_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_saas.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.get_saas request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new saas. + # + # @overload create_saas(request, options = nil) + # Pass arguments to `create_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_saas(parent: nil, saas_id: nil, saas: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the saas. + # @param saas_id [::String] + # Required. The ID value for the new saas. + # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] + # Required. The desired state for the saas. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new + # + # # Call the create_saas method. + # result = client.create_saas request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p result + # + def create_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_saas.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.create_saas request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single saas. + # + # @overload update_saas(request, options = nil) + # Pass arguments to `update_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_saas(saas: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] + # Required. The desired state for the saas. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Saas resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Saas will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new + # + # # Call the update_saas method. + # result = client.update_saas request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + # p result + # + def update_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_saas.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.update_saas request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single saas. + # + # @overload delete_saas(request, options = nil) + # Pass arguments to `delete_saas` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_saas(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_saas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the saas. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the saas. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new + # + # # Call the delete_saas method. + # result = client.delete_saas request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_saas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_saas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_saas.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_saas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.delete_saas request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of tenants. + # + # @overload list_tenants(request, options = nil) + # Pass arguments to `list_tenants` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_tenants(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_tenants` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the tenant. + # @param page_size [::Integer] + # The maximum number of tenants to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new + # + # # Call the list_tenants method. + # result = client.list_tenants request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p item + # end + # + def list_tenants request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_tenants.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_tenants.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_tenants.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.list_tenants request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_tenants, "tenants", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single tenant. + # + # @overload get_tenant(request, options = nil) + # Pass arguments to `get_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_tenant(name: nil) + # Pass arguments to `get_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new + # + # # Call the get_tenant method. + # result = client.get_tenant request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p result + # + def get_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_tenant.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.get_tenant request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new tenant. + # + # @overload create_tenant(request, options = nil) + # Pass arguments to `create_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_tenant(parent: nil, tenant_id: nil, tenant: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the tenant. + # @param tenant_id [::String] + # Required. The ID value for the new tenant. + # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] + # Required. The desired state for the tenant. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new + # + # # Call the create_tenant method. + # result = client.create_tenant request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p result + # + def create_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_tenant.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.create_tenant request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single tenant. + # + # @overload update_tenant(request, options = nil) + # Pass arguments to `update_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_tenant(tenant: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] + # Required. The desired state for the tenant. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Tenant resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Tenant will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new + # + # # Call the update_tenant method. + # result = client.update_tenant request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + # p result + # + def update_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_tenant.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.update_tenant request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single tenant. + # + # @overload delete_tenant(request, options = nil) + # Pass arguments to `delete_tenant` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_tenant(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_tenant` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the tenant. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the tenant. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new + # + # # Call the delete_tenant method. + # result = client.delete_tenant request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_tenant request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_tenant.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_tenant.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.delete_tenant request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of unit kinds. + # + # @overload list_unit_kinds(request, options = nil) + # Pass arguments to `list_unit_kinds` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_unit_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_unit_kinds` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit kind. + # @param page_size [::Integer] + # The maximum number of unit kinds to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new + # + # # Call the list_unit_kinds method. + # result = client.list_unit_kinds request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p item + # end + # + def list_unit_kinds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_unit_kinds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_unit_kinds.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_unit_kinds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.list_unit_kinds request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_unit_kinds, "unit_kinds", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single unit kind. + # + # @overload get_unit_kind(request, options = nil) + # Pass arguments to `get_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_unit_kind(name: nil) + # Pass arguments to `get_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new + # + # # Call the get_unit_kind method. + # result = client.get_unit_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p result + # + def get_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_unit_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.get_unit_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new unit kind. + # + # @overload create_unit_kind(request, options = nil) + # Pass arguments to `create_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_unit_kind(parent: nil, unit_kind_id: nil, unit_kind: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit kind. + # @param unit_kind_id [::String] + # Required. The ID value for the new unit kind. + # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] + # Required. The desired state for the unit kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new + # + # # Call the create_unit_kind method. + # result = client.create_unit_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p result + # + def create_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_unit_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.create_unit_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single unit kind. + # + # @overload update_unit_kind(request, options = nil) + # Pass arguments to `update_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_unit_kind(unit_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] + # Required. The desired state for the unit kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # UnitKind resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # UnitKind will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new + # + # # Call the update_unit_kind method. + # result = client.update_unit_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + # p result + # + def update_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_unit_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.update_unit_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single unit kind. + # + # @overload delete_unit_kind(request, options = nil) + # Pass arguments to `delete_unit_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_unit_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_unit_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the unit kind. This + # is used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit kind. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new + # + # # Call the delete_unit_kind method. + # result = client.delete_unit_kind request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_unit_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_unit_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_unit_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_unit_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.delete_unit_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of units. + # + # @overload list_units(request, options = nil) + # Pass arguments to `list_units` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_units(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_units` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit. + # @param page_size [::Integer] + # The maximum number of units to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new + # + # # Call the list_units method. + # result = client.list_units request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p item + # end + # + def list_units request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_units.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_units.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_units.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.list_units request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_units, "units", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single unit. + # + # @overload get_unit(request, options = nil) + # Pass arguments to `get_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_unit(name: nil) + # Pass arguments to `get_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new + # + # # Call the get_unit method. + # result = client.get_unit request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p result + # + def get_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_unit.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.get_unit request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new unit. + # + # @overload create_unit(request, options = nil) + # Pass arguments to `create_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_unit(parent: nil, unit_id: nil, unit: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit. + # @param unit_id [::String] + # Required. The ID value for the new unit. + # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] + # Required. The desired state for the unit. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new + # + # # Call the create_unit method. + # result = client.create_unit request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p result + # + def create_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_unit.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.create_unit request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single unit. + # + # @overload update_unit(request, options = nil) + # Pass arguments to `update_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_unit(unit: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] + # Required. The desired state for the unit. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Unit resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Unit will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new + # + # # Call the update_unit method. + # result = client.update_unit request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + # p result + # + def update_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_unit.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.update_unit request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single unit. + # + # @overload delete_unit(request, options = nil) + # Pass arguments to `delete_unit` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_unit(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_unit` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the unit. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new + # + # # Call the delete_unit method. + # result = client.delete_unit request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_unit request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_unit.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_unit.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_unit.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.delete_unit request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of unit operations. + # + # @overload list_unit_operations(request, options = nil) + # Pass arguments to `list_unit_operations` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_unit_operations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_unit_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit operation. + # @param page_size [::Integer] + # The maximum number of unit operations to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new + # + # # Call the list_unit_operations method. + # result = client.list_unit_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p item + # end + # + def list_unit_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_unit_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_unit_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_unit_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.list_unit_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_unit_operations, "unit_operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single unit operation. + # + # @overload get_unit_operation(request, options = nil) + # Pass arguments to `get_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_unit_operation(name: nil) + # Pass arguments to `get_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new + # + # # Call the get_unit_operation method. + # result = client.get_unit_operation request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p result + # + def get_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_unit_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.get_unit_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new unit operation. + # + # @overload create_unit_operation(request, options = nil) + # Pass arguments to `create_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_unit_operation(parent: nil, unit_operation_id: nil, unit_operation: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the unit operation. + # @param unit_operation_id [::String] + # Required. The ID value for the new unit operation. + # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] + # Required. The desired state for the unit operation. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new + # + # # Call the create_unit_operation method. + # result = client.create_unit_operation request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p result + # + def create_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_unit_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.create_unit_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single unit operation. + # + # @overload update_unit_operation(request, options = nil) + # Pass arguments to `update_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_unit_operation(unit_operation: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] + # Required. The desired state for the unit operation. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # UnitOperation resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # UnitOperation will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new + # + # # Call the update_unit_operation method. + # result = client.update_unit_operation request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + # p result + # + def update_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_unit_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.update_unit_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single unit operation. + # + # @overload delete_unit_operation(request, options = nil) + # Pass arguments to `delete_unit_operation` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_unit_operation(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_unit_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the unit operation. + # This is used with state-changing methods to prevent accidental overwrites + # when multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit operation. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new + # + # # Call the delete_unit_operation method. + # result = client.delete_unit_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_unit_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_unit_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_unit_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_unit_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.delete_unit_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of releases. + # + # @overload list_releases(request, options = nil) + # Pass arguments to `list_releases` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_releases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_releases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the release. + # @param page_size [::Integer] + # The maximum number of releases to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new + # + # # Call the list_releases method. + # result = client.list_releases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p item + # end + # + def list_releases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_releases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_releases.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_releases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.list_releases request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_releases, "releases", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single release. + # + # @overload get_release(request, options = nil) + # Pass arguments to `get_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_release(name: nil) + # Pass arguments to `get_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new + # + # # Call the get_release method. + # result = client.get_release request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p result + # + def get_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_release.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.get_release request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new release. + # + # @overload create_release(request, options = nil) + # Pass arguments to `create_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_release(parent: nil, release_id: nil, release: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the release. + # @param release_id [::String] + # Required. The ID value for the new release. + # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] + # Required. The desired state for the release. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new + # + # # Call the create_release method. + # result = client.create_release request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p result + # + def create_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_release.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.create_release request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single release. + # + # @overload update_release(request, options = nil) + # Pass arguments to `update_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_release(release: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] + # Required. The desired state for the release. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Release resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Release will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new + # + # # Call the update_release method. + # result = client.update_release request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + # p result + # + def update_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_release.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.update_release request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single release. + # + # @overload delete_release(request, options = nil) + # Pass arguments to `delete_release` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_release(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_release` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the release. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the release. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new + # + # # Call the delete_release method. + # result = client.delete_release request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_release.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_release.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_release.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_deployments_stub.delete_release request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the SaasDeployments REST API. + # + # This class represents the configuration for SaasDeployments REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_saas to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_saas.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_saas.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + # Overrides for http bindings for the RPCs of this service + # are only used when this service is used as mixin, and only + # by the host service. + # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] + config_attr :bindings_override, {}, ::Hash, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the SaasDeployments API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :list_saas + ## + # RPC-specific configuration for `get_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :get_saas + ## + # RPC-specific configuration for `create_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :create_saas + ## + # RPC-specific configuration for `update_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :update_saas + ## + # RPC-specific configuration for `delete_saas` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_saas + ## + # RPC-specific configuration for `list_tenants` + # @return [::Gapic::Config::Method] + # + attr_reader :list_tenants + ## + # RPC-specific configuration for `get_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :get_tenant + ## + # RPC-specific configuration for `create_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :create_tenant + ## + # RPC-specific configuration for `update_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :update_tenant + ## + # RPC-specific configuration for `delete_tenant` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_tenant + ## + # RPC-specific configuration for `list_unit_kinds` + # @return [::Gapic::Config::Method] + # + attr_reader :list_unit_kinds + ## + # RPC-specific configuration for `get_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :get_unit_kind + ## + # RPC-specific configuration for `create_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :create_unit_kind + ## + # RPC-specific configuration for `update_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :update_unit_kind + ## + # RPC-specific configuration for `delete_unit_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_unit_kind + ## + # RPC-specific configuration for `list_units` + # @return [::Gapic::Config::Method] + # + attr_reader :list_units + ## + # RPC-specific configuration for `get_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :get_unit + ## + # RPC-specific configuration for `create_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :create_unit + ## + # RPC-specific configuration for `update_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :update_unit + ## + # RPC-specific configuration for `delete_unit` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_unit + ## + # RPC-specific configuration for `list_unit_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_unit_operations + ## + # RPC-specific configuration for `get_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_unit_operation + ## + # RPC-specific configuration for `create_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_unit_operation + ## + # RPC-specific configuration for `update_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :update_unit_operation + ## + # RPC-specific configuration for `delete_unit_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_unit_operation + ## + # RPC-specific configuration for `list_releases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_releases + ## + # RPC-specific configuration for `get_release` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release + ## + # RPC-specific configuration for `create_release` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release + ## + # RPC-specific configuration for `update_release` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release + ## + # RPC-specific configuration for `delete_release` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release + + # @private + def initialize parent_rpcs = nil + list_saas_config = parent_rpcs.list_saas if parent_rpcs.respond_to? :list_saas + @list_saas = ::Gapic::Config::Method.new list_saas_config + get_saas_config = parent_rpcs.get_saas if parent_rpcs.respond_to? :get_saas + @get_saas = ::Gapic::Config::Method.new get_saas_config + create_saas_config = parent_rpcs.create_saas if parent_rpcs.respond_to? :create_saas + @create_saas = ::Gapic::Config::Method.new create_saas_config + update_saas_config = parent_rpcs.update_saas if parent_rpcs.respond_to? :update_saas + @update_saas = ::Gapic::Config::Method.new update_saas_config + delete_saas_config = parent_rpcs.delete_saas if parent_rpcs.respond_to? :delete_saas + @delete_saas = ::Gapic::Config::Method.new delete_saas_config + list_tenants_config = parent_rpcs.list_tenants if parent_rpcs.respond_to? :list_tenants + @list_tenants = ::Gapic::Config::Method.new list_tenants_config + get_tenant_config = parent_rpcs.get_tenant if parent_rpcs.respond_to? :get_tenant + @get_tenant = ::Gapic::Config::Method.new get_tenant_config + create_tenant_config = parent_rpcs.create_tenant if parent_rpcs.respond_to? :create_tenant + @create_tenant = ::Gapic::Config::Method.new create_tenant_config + update_tenant_config = parent_rpcs.update_tenant if parent_rpcs.respond_to? :update_tenant + @update_tenant = ::Gapic::Config::Method.new update_tenant_config + delete_tenant_config = parent_rpcs.delete_tenant if parent_rpcs.respond_to? :delete_tenant + @delete_tenant = ::Gapic::Config::Method.new delete_tenant_config + list_unit_kinds_config = parent_rpcs.list_unit_kinds if parent_rpcs.respond_to? :list_unit_kinds + @list_unit_kinds = ::Gapic::Config::Method.new list_unit_kinds_config + get_unit_kind_config = parent_rpcs.get_unit_kind if parent_rpcs.respond_to? :get_unit_kind + @get_unit_kind = ::Gapic::Config::Method.new get_unit_kind_config + create_unit_kind_config = parent_rpcs.create_unit_kind if parent_rpcs.respond_to? :create_unit_kind + @create_unit_kind = ::Gapic::Config::Method.new create_unit_kind_config + update_unit_kind_config = parent_rpcs.update_unit_kind if parent_rpcs.respond_to? :update_unit_kind + @update_unit_kind = ::Gapic::Config::Method.new update_unit_kind_config + delete_unit_kind_config = parent_rpcs.delete_unit_kind if parent_rpcs.respond_to? :delete_unit_kind + @delete_unit_kind = ::Gapic::Config::Method.new delete_unit_kind_config + list_units_config = parent_rpcs.list_units if parent_rpcs.respond_to? :list_units + @list_units = ::Gapic::Config::Method.new list_units_config + get_unit_config = parent_rpcs.get_unit if parent_rpcs.respond_to? :get_unit + @get_unit = ::Gapic::Config::Method.new get_unit_config + create_unit_config = parent_rpcs.create_unit if parent_rpcs.respond_to? :create_unit + @create_unit = ::Gapic::Config::Method.new create_unit_config + update_unit_config = parent_rpcs.update_unit if parent_rpcs.respond_to? :update_unit + @update_unit = ::Gapic::Config::Method.new update_unit_config + delete_unit_config = parent_rpcs.delete_unit if parent_rpcs.respond_to? :delete_unit + @delete_unit = ::Gapic::Config::Method.new delete_unit_config + list_unit_operations_config = parent_rpcs.list_unit_operations if parent_rpcs.respond_to? :list_unit_operations + @list_unit_operations = ::Gapic::Config::Method.new list_unit_operations_config + get_unit_operation_config = parent_rpcs.get_unit_operation if parent_rpcs.respond_to? :get_unit_operation + @get_unit_operation = ::Gapic::Config::Method.new get_unit_operation_config + create_unit_operation_config = parent_rpcs.create_unit_operation if parent_rpcs.respond_to? :create_unit_operation + @create_unit_operation = ::Gapic::Config::Method.new create_unit_operation_config + update_unit_operation_config = parent_rpcs.update_unit_operation if parent_rpcs.respond_to? :update_unit_operation + @update_unit_operation = ::Gapic::Config::Method.new update_unit_operation_config + delete_unit_operation_config = parent_rpcs.delete_unit_operation if parent_rpcs.respond_to? :delete_unit_operation + @delete_unit_operation = ::Gapic::Config::Method.new delete_unit_operation_config + list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases + @list_releases = ::Gapic::Config::Method.new list_releases_config + get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release + @get_release = ::Gapic::Config::Method.new get_release_config + create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release + @create_release = ::Gapic::Config::Method.new create_release_config + update_release_config = parent_rpcs.update_release if parent_rpcs.respond_to? :update_release + @update_release = ::Gapic::Config::Method.new update_release_config + delete_release_config = parent_rpcs.delete_release if parent_rpcs.respond_to? :delete_release + @delete_release = ::Gapic::Config::Method.new delete_release_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb new file mode 100644 index 000000000000..f5cdfdb251a2 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb @@ -0,0 +1,1925 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasDeployments + module Rest + ## + # REST service stub for the SaasDeployments service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse] + # A result object deserialized from the server's reply + def list_saas request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_saas_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_saas", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # A result object deserialized from the server's reply + def get_saas request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_saas_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_saas", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # A result object deserialized from the server's reply + def create_saas request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_saas_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_saas", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # A result object deserialized from the server's reply + def update_saas request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_saas_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_saas", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_saas request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_saas_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_saas", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_tenants REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse] + # A result object deserialized from the server's reply + def list_tenants request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_tenants_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_tenants", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # A result object deserialized from the server's reply + def get_tenant request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_tenant_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_tenant", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # A result object deserialized from the server's reply + def create_tenant request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_tenant_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_tenant", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # A result object deserialized from the server's reply + def update_tenant request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_tenant_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_tenant", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_tenant request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_tenant_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_tenant", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_unit_kinds REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse] + # A result object deserialized from the server's reply + def list_unit_kinds request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_unit_kinds_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_unit_kinds", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # A result object deserialized from the server's reply + def get_unit_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_unit_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # A result object deserialized from the server's reply + def create_unit_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_unit_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # A result object deserialized from the server's reply + def update_unit_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_unit_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_unit_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_unit_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_units REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse] + # A result object deserialized from the server's reply + def list_units request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_units_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_units", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # A result object deserialized from the server's reply + def get_unit request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_unit", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # A result object deserialized from the server's reply + def create_unit request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_unit", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # A result object deserialized from the server's reply + def update_unit request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_unit", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_unit request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_unit", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_unit_operations REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse] + # A result object deserialized from the server's reply + def list_unit_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_unit_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_unit_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # A result object deserialized from the server's reply + def get_unit_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_unit_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # A result object deserialized from the server's reply + def create_unit_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_unit_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # A result object deserialized from the server's reply + def update_unit_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_unit_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_unit_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_unit_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_releases REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse] + # A result object deserialized from the server's reply + def list_releases request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_releases_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_releases", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # A result object deserialized from the server's reply + def get_release request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_release_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_release", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # A result object deserialized from the server's reply + def create_release request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_release_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_release", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # A result object deserialized from the server's reply + def update_release request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_release_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_release", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_release request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_release", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_saas_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/saas", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_saas_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_saas_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/saas", + body: "saas", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_saas_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{saas.name}", + body: "saas", + matches: [ + ["saas.name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_saas REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_saas_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_tenants REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_tenants_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/tenants", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_tenant_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_tenant_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/tenants", + body: "tenant", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_tenant_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{tenant.name}", + body: "tenant", + matches: [ + ["tenant.name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_tenant REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_tenant_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_unit_kinds REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_unit_kinds_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/unitKinds", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_unit_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_unit_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/unitKinds", + body: "unit_kind", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_unit_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{unit_kind.name}", + body: "unit_kind", + matches: [ + ["unit_kind.name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_unit_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_unit_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_units REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_units_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/units", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_unit_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_unit_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/units", + body: "unit", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_unit_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{unit.name}", + body: "unit", + matches: [ + ["unit.name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_unit REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_unit_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_unit_operations REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_unit_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/unitOperations", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_unit_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_unit_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/unitOperations", + body: "unit_operation", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_unit_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{unit_operation.name}", + body: "unit_operation", + matches: [ + ["unit_operation.name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_unit_operation REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_unit_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_releases REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_releases_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/releases", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_release_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_release_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/releases", + body: "release", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_release_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{release.name}", + body: "release", + matches: [ + ["release.name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_release REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_release_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb new file mode 100644 index 000000000000..5e1c1a19ccc6 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + ## + # Manages the rollout of SaaS services. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + module SaasRollouts + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "saas_rollouts", "helpers.rb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb new file mode 100644 index 000000000000..887bff6b5738 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb @@ -0,0 +1,1534 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" +require "google/cloud/location" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasRollouts + ## + # Client for the SaasRollouts service. + # + # Manages the rollout of SaaS services. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :saas_rollouts_stub + + ## + # Configure the SaasRollouts Client class. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SaasRollouts clients + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.list_rollouts.timeout = 60.0 + default_config.rpcs.list_rollouts.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_rollout.timeout = 60.0 + default_config.rpcs.get_rollout.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_rollout.timeout = 60.0 + + default_config.rpcs.update_rollout.timeout = 60.0 + + default_config.rpcs.delete_rollout.timeout = 540.0 + default_config.rpcs.delete_rollout.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_rollout_kinds.timeout = 60.0 + default_config.rpcs.list_rollout_kinds.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_rollout_kind.timeout = 60.0 + default_config.rpcs.get_rollout_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_rollout_kind.timeout = 60.0 + + default_config.rpcs.update_rollout_kind.timeout = 60.0 + + default_config.rpcs.delete_rollout_kind.timeout = 60.0 + default_config.rpcs.delete_rollout_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SaasRollouts Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @saas_rollouts_stub.universe_domain + end + + ## + # Create a new SaasRollouts client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SaasRollouts client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @saas_rollouts_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @saas_rollouts_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @saas_rollouts_stub.endpoint + config.universe_domain = @saas_rollouts_stub.universe_domain + config.logger = @saas_rollouts_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @saas_rollouts_stub.logger + end + + # Service calls + + ## + # Retrieve a collection of rollouts. + # + # @overload list_rollouts(request, options = nil) + # Pass arguments to `list_rollouts` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_rollouts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_rollouts` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout. + # @param page_size [::Integer] + # The maximum number of rollouts to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new + # + # # Call the list_rollouts method. + # result = client.list_rollouts request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p item + # end + # + def list_rollouts request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_rollouts.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_rollouts.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_rollouts.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :list_rollouts, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_rollouts_stub, :list_rollouts, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single rollout. + # + # @overload get_rollout(request, options = nil) + # Pass arguments to `get_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_rollout(name: nil) + # Pass arguments to `get_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new + # + # # Call the get_rollout method. + # result = client.get_rollout request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p result + # + def get_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_rollout.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :get_rollout, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new rollout. + # + # @overload create_rollout(request, options = nil) + # Pass arguments to `create_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_rollout(parent: nil, rollout_id: nil, rollout: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout. + # @param rollout_id [::String] + # Required. The ID value for the new rollout. + # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] + # Required. The desired state for the rollout. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new + # + # # Call the create_rollout method. + # result = client.create_rollout request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p result + # + def create_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_rollout.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :create_rollout, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single rollout. + # + # @overload update_rollout(request, options = nil) + # Pass arguments to `update_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_rollout(rollout: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] + # Required. The desired state for the rollout. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Rollout resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Rollout will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new + # + # # Call the update_rollout method. + # result = client.update_rollout request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p result + # + def update_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.rollout&.name + header_params["rollout.name"] = request.rollout.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_rollout.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :update_rollout, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single rollout. + # + # @overload delete_rollout(request, options = nil) + # Pass arguments to `delete_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_rollout(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the rollout. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the rollout. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new + # + # # Call the delete_rollout method. + # result = client.delete_rollout request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_rollout.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :delete_rollout, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of rollout kinds. + # + # @overload list_rollout_kinds(request, options = nil) + # Pass arguments to `list_rollout_kinds` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_rollout_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_rollout_kinds` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout kind. + # @param page_size [::Integer] + # The maximum number of rollout kinds to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new + # + # # Call the list_rollout_kinds method. + # result = client.list_rollout_kinds request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p item + # end + # + def list_rollout_kinds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_rollout_kinds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_rollout_kinds.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_rollout_kinds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :list_rollout_kinds, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @saas_rollouts_stub, :list_rollout_kinds, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single rollout kind. + # + # @overload get_rollout_kind(request, options = nil) + # Pass arguments to `get_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_rollout_kind(name: nil) + # Pass arguments to `get_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new + # + # # Call the get_rollout_kind method. + # result = client.get_rollout_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p result + # + def get_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_rollout_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :get_rollout_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new rollout kind. + # + # @overload create_rollout_kind(request, options = nil) + # Pass arguments to `create_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_rollout_kind(parent: nil, rollout_kind_id: nil, rollout_kind: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout kind. + # @param rollout_kind_id [::String] + # Required. The ID value for the new rollout kind. + # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] + # Required. The desired state for the rollout kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new + # + # # Call the create_rollout_kind method. + # result = client.create_rollout_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p result + # + def create_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_rollout_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :create_rollout_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single rollout kind. + # + # @overload update_rollout_kind(request, options = nil) + # Pass arguments to `update_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_rollout_kind(rollout_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] + # Required. The desired state for the rollout kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # RolloutKind resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # RolloutKind will be overwritten. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new + # + # # Call the update_rollout_kind method. + # result = client.update_rollout_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p result + # + def update_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.rollout_kind&.name + header_params["rollout_kind.name"] = request.rollout_kind.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_rollout_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :update_rollout_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single rollout kind. + # + # @overload delete_rollout_kind(request, options = nil) + # Pass arguments to `delete_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_rollout_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the rollout kind. + # This is used with state-changing methods to prevent accidental overwrites + # when multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the rollout kind. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new + # + # # Call the delete_rollout_kind method. + # result = client.delete_rollout_kind request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_rollout_kind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.call_rpc :delete_rollout_kind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the SaasRollouts API. + # + # This class represents the configuration for SaasRollouts, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_rollouts to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_rollouts.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_rollouts.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the SaasRollouts API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_rollouts` + # @return [::Gapic::Config::Method] + # + attr_reader :list_rollouts + ## + # RPC-specific configuration for `get_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :get_rollout + ## + # RPC-specific configuration for `create_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollout + ## + # RPC-specific configuration for `update_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :update_rollout + ## + # RPC-specific configuration for `delete_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_rollout + ## + # RPC-specific configuration for `list_rollout_kinds` + # @return [::Gapic::Config::Method] + # + attr_reader :list_rollout_kinds + ## + # RPC-specific configuration for `get_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :get_rollout_kind + ## + # RPC-specific configuration for `create_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollout_kind + ## + # RPC-specific configuration for `update_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :update_rollout_kind + ## + # RPC-specific configuration for `delete_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_rollout_kind + + # @private + def initialize parent_rpcs = nil + list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts + @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config + get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout + @get_rollout = ::Gapic::Config::Method.new get_rollout_config + create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout + @create_rollout = ::Gapic::Config::Method.new create_rollout_config + update_rollout_config = parent_rpcs.update_rollout if parent_rpcs.respond_to? :update_rollout + @update_rollout = ::Gapic::Config::Method.new update_rollout_config + delete_rollout_config = parent_rpcs.delete_rollout if parent_rpcs.respond_to? :delete_rollout + @delete_rollout = ::Gapic::Config::Method.new delete_rollout_config + list_rollout_kinds_config = parent_rpcs.list_rollout_kinds if parent_rpcs.respond_to? :list_rollout_kinds + @list_rollout_kinds = ::Gapic::Config::Method.new list_rollout_kinds_config + get_rollout_kind_config = parent_rpcs.get_rollout_kind if parent_rpcs.respond_to? :get_rollout_kind + @get_rollout_kind = ::Gapic::Config::Method.new get_rollout_kind_config + create_rollout_kind_config = parent_rpcs.create_rollout_kind if parent_rpcs.respond_to? :create_rollout_kind + @create_rollout_kind = ::Gapic::Config::Method.new create_rollout_kind_config + update_rollout_kind_config = parent_rpcs.update_rollout_kind if parent_rpcs.respond_to? :update_rollout_kind + @update_rollout_kind = ::Gapic::Config::Method.new update_rollout_kind_config + delete_rollout_kind_config = parent_rpcs.delete_rollout_kind if parent_rpcs.respond_to? :delete_rollout_kind + @delete_rollout_kind = ::Gapic::Config::Method.new delete_rollout_kind_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb new file mode 100644 index 000000000000..120f664d6639 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasRollouts + # Credentials for the SaasRollouts API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb new file mode 100644 index 000000000000..3e94a7b7305c --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb @@ -0,0 +1,128 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasRollouts + # Path helper methods for the SaasRollouts API. + module Paths + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified Release resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/releases/{release}` + # + # @param project [String] + # @param location [String] + # @param release [String] + # + # @return [::String] + def release_path project:, location:, release: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/releases/#{release}" + end + + ## + # Create a fully-qualified Rollout resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/rollouts/{rollout_id}` + # + # @param project [String] + # @param location [String] + # @param rollout_id [String] + # + # @return [::String] + def rollout_path project:, location:, rollout_id: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/rollouts/#{rollout_id}" + end + + ## + # Create a fully-qualified RolloutKind resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}` + # + # @param project [String] + # @param location [String] + # @param rollout_kind_id [String] + # + # @return [::String] + def rollout_kind_path project:, location:, rollout_kind_id: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/rolloutKinds/#{rollout_kind_id}" + end + + ## + # Create a fully-qualified UnitKind resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/unitKinds/{unit_kind}` + # + # @param project [String] + # @param location [String] + # @param unit_kind [String] + # + # @return [::String] + def unit_kind_path project:, location:, unit_kind: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/unitKinds/#{unit_kind}" + end + + extend self + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb new file mode 100644 index 000000000000..d93824138b96 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + ## + # Manages the rollout of SaaS services. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + module SaasRollouts + # Client for the REST transport + module Rest + end + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb new file mode 100644 index 000000000000..9b51fa8ce98a --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb @@ -0,0 +1,1429 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub" +require "google/cloud/location/rest" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasRollouts + module Rest + ## + # REST client for the SaasRollouts service. + # + # Manages the rollout of SaaS services. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :saas_rollouts_stub + + ## + # Configure the SaasRollouts Client class. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all SaasRollouts clients + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.rpcs.list_rollouts.timeout = 60.0 + default_config.rpcs.list_rollouts.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_rollout.timeout = 60.0 + default_config.rpcs.get_rollout.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_rollout.timeout = 60.0 + + default_config.rpcs.update_rollout.timeout = 60.0 + + default_config.rpcs.delete_rollout.timeout = 540.0 + default_config.rpcs.delete_rollout.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.list_rollout_kinds.timeout = 60.0 + default_config.rpcs.list_rollout_kinds.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.get_rollout_kind.timeout = 60.0 + default_config.rpcs.get_rollout_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config.rpcs.create_rollout_kind.timeout = 60.0 + + default_config.rpcs.update_rollout_kind.timeout = 60.0 + + default_config.rpcs.delete_rollout_kind.timeout = 60.0 + default_config.rpcs.delete_rollout_kind.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the SaasRollouts Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @saas_rollouts_stub.universe_domain + end + + ## + # Create a new SaasRollouts REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the SaasRollouts client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @saas_rollouts_stub = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @saas_rollouts_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @saas_rollouts_stub.endpoint + config.universe_domain = @saas_rollouts_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @saas_rollouts_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @saas_rollouts_stub.logger + end + + # Service calls + + ## + # Retrieve a collection of rollouts. + # + # @overload list_rollouts(request, options = nil) + # Pass arguments to `list_rollouts` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_rollouts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_rollouts` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout. + # @param page_size [::Integer] + # The maximum number of rollouts to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new + # + # # Call the list_rollouts method. + # result = client.list_rollouts request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p item + # end + # + def list_rollouts request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_rollouts.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_rollouts.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_rollouts.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.list_rollouts request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_rollouts_stub, :list_rollouts, "rollouts", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single rollout. + # + # @overload get_rollout(request, options = nil) + # Pass arguments to `get_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_rollout(name: nil) + # Pass arguments to `get_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new + # + # # Call the get_rollout method. + # result = client.get_rollout request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p result + # + def get_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_rollout.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.get_rollout request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new rollout. + # + # @overload create_rollout(request, options = nil) + # Pass arguments to `create_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_rollout(parent: nil, rollout_id: nil, rollout: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout. + # @param rollout_id [::String] + # Required. The ID value for the new rollout. + # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] + # Required. The desired state for the rollout. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new + # + # # Call the create_rollout method. + # result = client.create_rollout request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p result + # + def create_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_rollout.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.create_rollout request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single rollout. + # + # @overload update_rollout(request, options = nil) + # Pass arguments to `update_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_rollout(rollout: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] + # Required. The desired state for the rollout. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # Rollout resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Rollout will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new + # + # # Call the update_rollout method. + # result = client.update_rollout request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + # p result + # + def update_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_rollout.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.update_rollout request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single rollout. + # + # @overload delete_rollout(request, options = nil) + # Pass arguments to `delete_rollout` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_rollout(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_rollout` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the rollout. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the rollout. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new + # + # # Call the delete_rollout method. + # result = client.delete_rollout request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_rollout request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_rollout.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_rollout.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_rollout.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.delete_rollout request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a collection of rollout kinds. + # + # @overload list_rollout_kinds(request, options = nil) + # Pass arguments to `list_rollout_kinds` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_rollout_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_rollout_kinds` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout kind. + # @param page_size [::Integer] + # The maximum number of rollout kinds to send per page. + # @param page_token [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @param filter [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Order results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new + # + # # Call the list_rollout_kinds method. + # result = client.list_rollout_kinds request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p item + # end + # + def list_rollout_kinds request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_rollout_kinds.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_rollout_kinds.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_rollout_kinds.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.list_rollout_kinds request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @saas_rollouts_stub, :list_rollout_kinds, "rollout_kinds", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single rollout kind. + # + # @overload get_rollout_kind(request, options = nil) + # Pass arguments to `get_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_rollout_kind(name: nil) + # Pass arguments to `get_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new + # + # # Call the get_rollout_kind method. + # result = client.get_rollout_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p result + # + def get_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_rollout_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.get_rollout_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a new rollout kind. + # + # @overload create_rollout_kind(request, options = nil) + # Pass arguments to `create_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_rollout_kind(parent: nil, rollout_kind_id: nil, rollout_kind: nil, validate_only: nil, request_id: nil) + # Pass arguments to `create_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent of the rollout kind. + # @param rollout_kind_id [::String] + # Required. The ID value for the new rollout kind. + # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] + # Required. The desired state for the rollout kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new + # + # # Call the create_rollout_kind method. + # result = client.create_rollout_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p result + # + def create_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_rollout_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.create_rollout_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update a single rollout kind. + # + # @overload update_rollout_kind(request, options = nil) + # Pass arguments to `update_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_rollout_kind(rollout_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) + # Pass arguments to `update_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] + # Required. The desired state for the rollout kind. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Field mask is used to specify the fields to be overwritten in the + # RolloutKind resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # RolloutKind will be overwritten. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new + # + # # Call the update_rollout_kind method. + # result = client.update_rollout_kind request + # + # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + # p result + # + def update_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_rollout_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.update_rollout_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Delete a single rollout kind. + # + # @overload delete_rollout_kind(request, options = nil) + # Pass arguments to `delete_rollout_kind` via a request object, either of type + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_rollout_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) + # Pass arguments to `delete_rollout_kind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the resource within a service. + # @param etag [::String] + # The etag known to the client for the expected state of the rollout kind. + # This is used with state-changing methods to prevent accidental overwrites + # when multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the rollout kind. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @param validate_only [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @param request_id [::String] + # An optional 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 since 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). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new + # + # # Call the delete_rollout_kind method. + # result = client.delete_rollout_kind request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_rollout_kind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_rollout_kind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_rollout_kind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_rollout_kind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @saas_rollouts_stub.delete_rollout_kind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the SaasRollouts REST API. + # + # This class represents the configuration for SaasRollouts REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_rollouts to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_rollouts.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_rollouts.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + # Overrides for http bindings for the RPCs of this service + # are only used when this service is used as mixin, and only + # by the host service. + # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] + config_attr :bindings_override, {}, ::Hash, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the SaasRollouts API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_rollouts` + # @return [::Gapic::Config::Method] + # + attr_reader :list_rollouts + ## + # RPC-specific configuration for `get_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :get_rollout + ## + # RPC-specific configuration for `create_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollout + ## + # RPC-specific configuration for `update_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :update_rollout + ## + # RPC-specific configuration for `delete_rollout` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_rollout + ## + # RPC-specific configuration for `list_rollout_kinds` + # @return [::Gapic::Config::Method] + # + attr_reader :list_rollout_kinds + ## + # RPC-specific configuration for `get_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :get_rollout_kind + ## + # RPC-specific configuration for `create_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollout_kind + ## + # RPC-specific configuration for `update_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :update_rollout_kind + ## + # RPC-specific configuration for `delete_rollout_kind` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_rollout_kind + + # @private + def initialize parent_rpcs = nil + list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts + @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config + get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout + @get_rollout = ::Gapic::Config::Method.new get_rollout_config + create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout + @create_rollout = ::Gapic::Config::Method.new create_rollout_config + update_rollout_config = parent_rpcs.update_rollout if parent_rpcs.respond_to? :update_rollout + @update_rollout = ::Gapic::Config::Method.new update_rollout_config + delete_rollout_config = parent_rpcs.delete_rollout if parent_rpcs.respond_to? :delete_rollout + @delete_rollout = ::Gapic::Config::Method.new delete_rollout_config + list_rollout_kinds_config = parent_rpcs.list_rollout_kinds if parent_rpcs.respond_to? :list_rollout_kinds + @list_rollout_kinds = ::Gapic::Config::Method.new list_rollout_kinds_config + get_rollout_kind_config = parent_rpcs.get_rollout_kind if parent_rpcs.respond_to? :get_rollout_kind + @get_rollout_kind = ::Gapic::Config::Method.new get_rollout_kind_config + create_rollout_kind_config = parent_rpcs.create_rollout_kind if parent_rpcs.respond_to? :create_rollout_kind + @create_rollout_kind = ::Gapic::Config::Method.new create_rollout_kind_config + update_rollout_kind_config = parent_rpcs.update_rollout_kind if parent_rpcs.respond_to? :update_rollout_kind + @update_rollout_kind = ::Gapic::Config::Method.new update_rollout_kind_config + delete_rollout_kind_config = parent_rpcs.delete_rollout_kind if parent_rpcs.respond_to? :delete_rollout_kind + @delete_rollout_kind = ::Gapic::Config::Method.new delete_rollout_kind_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb new file mode 100644 index 000000000000..b0d0e3b97106 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb @@ -0,0 +1,697 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasRollouts + module Rest + ## + # REST service stub for the SaasRollouts service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_rollouts REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse] + # A result object deserialized from the server's reply + def list_rollouts request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_rollouts_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_rollouts", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # A result object deserialized from the server's reply + def get_rollout request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_rollout_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_rollout", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # A result object deserialized from the server's reply + def create_rollout request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_rollout_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_rollout", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # A result object deserialized from the server's reply + def update_rollout request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_rollout_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_rollout", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_rollout request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_rollout_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_rollout", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_rollout_kinds REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse] + # A result object deserialized from the server's reply + def list_rollout_kinds request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_rollout_kinds_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_rollout_kinds", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # A result object deserialized from the server's reply + def get_rollout_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_rollout_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_rollout_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # A result object deserialized from the server's reply + def create_rollout_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_rollout_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_rollout_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # A result object deserialized from the server's reply + def update_rollout_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_rollout_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_rollout_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_rollout_kind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_rollout_kind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_rollout_kind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_rollouts REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_rollouts_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/rollouts", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_rollout_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_rollout_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/rollouts", + body: "rollout", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_rollout_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{rollout.name}", + body: "rollout", + matches: [ + ["rollout.name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_rollout REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_rollout_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_rollout_kinds REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_rollout_kinds_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{parent}/rolloutKinds", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_rollout_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_rollout_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1beta1/{parent}/rolloutKinds", + body: "rollout_kind", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_rollout_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1beta1/{rollout_kind.name}", + body: "rollout_kind", + matches: [ + ["rollout_kind.name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_rollout_kind REST call + # + # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_rollout_kind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1beta1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb new file mode 100644 index 000000000000..14648b82728e --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + VERSION = "0.0.1" + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb new file mode 100644 index 000000000000..450776ac3fe5 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n>google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n\tBlueprint\x12\x17\n\x07package\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x13\n\x06\x65ngine\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xd5\x01\n\x0cUnitVariable\x12\x18\n\x08variable\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12Z\n\x04type\x18\x02 \x01(\x0e\x32\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.TypeB\x06\xe0\x41\x01\xe0\x41\x05\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xfb\x03\n\rUnitCondition\x12\\\n\x06status\x18\x01 \x01(\x0e\x32G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.StatusB\x03\xe0\x41\x02\x12X\n\x04type\x18\x02 \x01(\x0e\x32\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_READY\x10\x01\x12\x11\n\rTYPE_UPDATING\x10\x02\x12\x14\n\x10TYPE_PROVISIONED\x10\x03\x12\x18\n\x14TYPE_OPERATION_ERROR\x10\x04\"\xcc\x04\n\x16UnitOperationCondition\x12\x65\n\x06status\x18\x01 \x01(\x0e\x32P.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.StatusB\x03\xe0\x41\x02\x12\x61\n\x04type\x18\x02 \x01(\x0e\x32N.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"\xa4\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eTYPE_SCHEDULED\x10\x02\x12\x10\n\x0cTYPE_RUNNING\x10\x03\x12\x12\n\x0eTYPE_SUCCEEDED\x10\x04\x12\x12\n\x0eTYPE_CANCELLED\x10\x05\x12\x14\n\x10TYPE_APP_CREATED\x10\x06\x12\"\n\x1eTYPE_APP_COMPONENTS_REGISTERED\x10\x07\"3\n\tAggregate\x12\x12\n\x05group\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05\x63ount\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02*\x96\x01\n\x1aUnitOperationErrorCategory\x12-\n)UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED\x10\x00\x12\x12\n\x0eNOT_APPLICABLE\x10\x01\x12\t\n\x05\x46\x41TAL\x10\x02\x12\r\n\tRETRIABLE\x10\x03\x12\r\n\tIGNORABLE\x10\x04\x12\x0c\n\x08STANDARD\x10\x05\x42\xc7\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x0b\x43ommonProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + Blueprint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint").msgclass + UnitVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable").msgclass + UnitVariable::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type").enummodule + UnitCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition").msgclass + UnitCondition::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status").enummodule + UnitCondition::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type").enummodule + UnitOperationCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition").msgclass + UnitOperationCondition::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status").enummodule + UnitOperationCondition::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type").enummodule + Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate").msgclass + UnitOperationErrorCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory").enummodule + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb new file mode 100644 index 000000000000..1b89f673a7dd --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb @@ -0,0 +1,73 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\nMgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a>google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1d\n\x08Location\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\x99\x05\n\x04Saas\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12S\n\tlocations\x18\x04 \x03(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationB\x03\xe0\x41\x01\x12Y\n\x06labels\x18\xa1Q \x03(\x0b\x32\x43.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.LabelsEntryB\x03\xe0\x41\x01\x12\x63\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32H.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:i\xea\x41\x66\n#saasservicemgmt.googleapis.com/Saas\x12\x33projects/{project}/locations/{location}/saas/{saas}*\x04saas2\x04saas\"\xb7\x05\n\x06Tenant\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12!\n\x11\x63onsumer_resource\x18\x02 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12<\n\x04saas\x18\x03 \x01(\tB.\xe0\x41\x02\xe0\x41\x05\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\x12[\n\x06labels\x18\xa1Q \x03(\x0b\x32\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.LabelsEntryB\x03\xe0\x41\x01\x12\x65\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32J.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:u\xea\x41r\n%saasservicemgmt.googleapis.com/Tenant\x12\x38projects/{project}/locations/{location}/tenants/{tenant}*\x07tenants2\x06tenant\"\x9f\x08\n\x08UnitKind\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x0f\x64\x65\x66\x61ult_release\x18\x02 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12[\n\x0c\x64\x65pendencies\x18\x04 \x03(\x0b\x32=.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyB\x06\xe0\x41\x01\xe0\x41\x05\x12h\n\x17input_variable_mappings\x18\x05 \x03(\x0b\x32\x42.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingB\x03\xe0\x41\x01\x12i\n\x18output_variable_mappings\x18\x06 \x03(\x0b\x32\x42.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingB\x03\xe0\x41\x01\x12<\n\x04saas\x18\x08 \x01(\tB.\xe0\x41\x02\xe0\x41\x05\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\x12]\n\x06labels\x18\xa1Q \x03(\x0b\x32G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.LabelsEntryB\x03\xe0\x41\x01\x12g\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32L.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n\'saasservicemgmt.googleapis.com/UnitKind\x12.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12<\n\x04unit\x18\x02 \x01(\tB.\xe0\x41\x02\xe0\x41\x05\xfa\x41%\n#saasservicemgmt.googleapis.com/Unit\x12S\n\x15parent_unit_operation\x18\x03 \x01(\tB4\xe0\x41\x01\xfa\x41.\n,saasservicemgmt.googleapis.com/UnitOperation\x12?\n\x07rollout\x18\x04 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Rollout\x12\x13\n\x06\x63\x61ncel\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12j\n\x05state\x18\x06 \x01(\x0e\x32S.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationStateB\x06\xe0\x41\x01\xe0\x41\x03\x12\x65\n\nconditions\x18\x07 \x03(\x0b\x32I.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionB\x06\xe0\x41\x01\xe0\x41\x03\x12R\n\x08schedule\x18\x0c \x01(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleB\x03\xe0\x41\x01\x12\x1c\n\x0c\x65ngine_state\x18\x0e \x01(\tB\x06\xe0\x41\x01\xe0\x41\x03\x12m\n\x0e\x65rror_category\x18\x0f \x01(\x0e\x32M.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategoryB\x06\xe0\x41\x01\xe0\x41\x03\x12\x62\n\x06labels\x18\xa1Q \x03(\x0b\x32L.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.LabelsEntryB\x03\xe0\x41\x01\x12l\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32Q.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x87\x02\n\x12UnitOperationState\x12 \n\x1cUNIT_OPERATION_STATE_UNKNOWN\x10\x00\x12 \n\x1cUNIT_OPERATION_STATE_PENDING\x10\x01\x12\"\n\x1eUNIT_OPERATION_STATE_SCHEDULED\x10\x02\x12 \n\x1cUNIT_OPERATION_STATE_RUNNING\x10\x04\x12\"\n\x1eUNIT_OPERATION_STATE_SUCCEEDED\x10\x05\x12\x1f\n\x1bUNIT_OPERATION_STATE_FAILED\x10\x06\x12\"\n\x1eUNIT_OPERATION_STATE_CANCELLED\x10\x07:\x99\x01\xea\x41\x95\x01\n,saasservicemgmt.googleapis.com/UnitOperation\x12\x46projects/{project}/locations/{location}/unitOperations/{unitOperation}*\x0eunitOperations2\runitOperationB\x15\n\x13unit_operation_type\"\xab\x01\n\tProvision\x12?\n\x07release\x18\x01 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12]\n\x0finput_variables\x18\x03 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x03\xe0\x41\x01\"\r\n\x0b\x44\x65provision\"\xa9\x01\n\x07Upgrade\x12?\n\x07release\x18\x01 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12]\n\x0finput_variables\x18\x02 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x03\xe0\x41\x01\"?\n\x08Schedule\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\x84\n\n\x07Release\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\tunit_kind\x18\x02 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\x12T\n\tblueprint\x18\x03 \x01(\x0b\x32<.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintB\x03\xe0\x41\x01\x12q\n\x14release_requirements\x18\x04 \x01(\x0b\x32N.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirementsB\x03\xe0\x41\x01\x12`\n\x0finput_variables\x18\x05 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x06\xe0\x41\x01\xe0\x41\x03\x12\x61\n\x10output_variables\x18\x06 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x06\xe0\x41\x01\xe0\x41\x03\x12\x65\n\x17input_variable_defaults\x18\x07 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x03\xe0\x41\x01\x12\\\n\x06labels\x18\xa1Q \x03(\x0b\x32\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.LabelsEntryB\x03\xe0\x41\x01\x12\x66\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32K.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1ah\n\x13ReleaseRequirements\x12Q\n\x19upgradeable_from_releases\x18\x01 \x03(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:z\xea\x41w\n&saasservicemgmt.googleapis.com/Release\x12:projects/{project}/locations/{location}/releases/{release}*\x08releases2\x07release\"\xde\x01\n\x0fVariableMapping\x12S\n\x04\x66rom\x18\x02 \x01(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingB\x03\xe0\x41\x01H\x00\x12O\n\x02to\x18\x03 \x01(\x0b\x32<.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingB\x03\xe0\x41\x01H\x00\x12\x15\n\x08variable\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x0e\n\x0cmapping_type\"D\n\x0b\x46romMapping\x12\x17\n\ndependency\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0foutput_variable\x18\x02 \x01(\tB\x03\xe0\x41\x02\"a\n\tToMapping\x12\x17\n\ndependency\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0einput_variable\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11ignore_for_lookup\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"g\n\nDependency\x12\x45\n\tunit_kind\x18\x01 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\x12\x12\n\x05\x61lias\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\xd9\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x1dSaasDeploymentsResourcesProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable", "google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + Location = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Location").msgclass + Saas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas").msgclass + Tenant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant").msgclass + UnitKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind").msgclass + Unit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit").msgclass + Unit::MaintenanceSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings").msgclass + Unit::UnitState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState").enummodule + Unit::ManagementMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode").enummodule + Unit::SystemManagedState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState").enummodule + UnitDependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency").msgclass + UnitOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation").msgclass + UnitOperation::UnitOperationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState").enummodule + Provision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision").msgclass + Deprovision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision").msgclass + Upgrade = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade").msgclass + Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule").msgclass + Release = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Release").msgclass + Release::ReleaseRequirements = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements").msgclass + VariableMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping").msgclass + FromMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping").msgclass + ToMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping").msgclass + Dependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb new file mode 100644 index 000000000000..5941cded8b40 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb @@ -0,0 +1,89 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nKgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aMgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9c\x01\n\x0fListSaasRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Saas\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x8a\x01\n\x10ListSaasResponse\x12\x46\n\x04saas\x18\x8dR \x03(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"L\n\x0eGetSaasRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\"\xe2\x01\n\x11\x43reateSaasRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Saas\x12\x15\n\x07saas_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12K\n\x04saas\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xbf\x01\n\x11UpdateSaasRequest\x12K\n\x04saas\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8b\x01\n\x11\x44\x65leteSaasRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xa1\x01\n\x12ListTenantsRequest\x12>\n\x06parent\x18\x96N \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%saasservicemgmt.googleapis.com/Tenant\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x92\x01\n\x13ListTenantsResponse\x12K\n\x07tenants\x18\x8dR \x03(\x0b\x32\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"P\n\x10GetTenantRequest\x12<\n\x04name\x18\x91N \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%saasservicemgmt.googleapis.com/Tenant\"\xec\x01\n\x13\x43reateTenantRequest\x12>\n\x06parent\x18\x96N \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%saasservicemgmt.googleapis.com/Tenant\x12\x17\n\ttenant_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12O\n\x06tenant\x18\x88R \x01(\x0b\x32\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xc5\x01\n\x13UpdateTenantRequest\x12O\n\x06tenant\x18\x88R \x01(\x0b\x32\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8f\x01\n\x13\x44\x65leteTenantRequest\x12<\n\x04name\x18\x91N \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%saasservicemgmt.googleapis.com/Tenant\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xa5\x01\n\x14ListUnitKindsRequest\x12@\n\x06parent\x18\x96N \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'saasservicemgmt.googleapis.com/UnitKind\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x99\x01\n\x15ListUnitKindsResponse\x12P\n\nunit_kinds\x18\x8dR \x03(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"T\n\x12GetUnitKindRequest\x12>\n\x04name\x18\x91N \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\"\xf8\x01\n\x15\x43reateUnitKindRequest\x12@\n\x06parent\x18\x96N \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'saasservicemgmt.googleapis.com/UnitKind\x12\x1a\n\x0cunit_kind_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12T\n\tunit_kind\x18\x88R \x01(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xcc\x01\n\x15UpdateUnitKindRequest\x12T\n\tunit_kind\x18\x88R \x01(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x93\x01\n\x15\x44\x65leteUnitKindRequest\x12>\n\x04name\x18\x91N \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\x9d\x01\n\x10ListUnitsRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Unit\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x8c\x01\n\x11ListUnitsResponse\x12G\n\x05units\x18\x8dR \x03(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"L\n\x0eGetUnitRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Unit\"\xe2\x01\n\x11\x43reateUnitRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Unit\x12\x15\n\x07unit_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12K\n\x04unit\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xbf\x01\n\x11UpdateUnitRequest\x12K\n\x04unit\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8b\x01\n\x11\x44\x65leteUnitRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Unit\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xaf\x01\n\x19ListUnitOperationsRequest\x12\x45\n\x06parent\x18\x96N \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,saasservicemgmt.googleapis.com/UnitOperation\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xa8\x01\n\x1aListUnitOperationsResponse\x12Z\n\x0funit_operations\x18\x8dR \x03(\x0b\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"^\n\x17GetUnitOperationRequest\x12\x43\n\x04name\x18\x91N \x01(\tB4\xe0\x41\x02\xfa\x41.\n,saasservicemgmt.googleapis.com/UnitOperation\"\x91\x02\n\x1a\x43reateUnitOperationRequest\x12\x45\n\x06parent\x18\x96N \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,saasservicemgmt.googleapis.com/UnitOperation\x12\x1f\n\x11unit_operation_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12^\n\x0eunit_operation\x18\x88R \x01(\x0b\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xdb\x01\n\x1aUpdateUnitOperationRequest\x12^\n\x0eunit_operation\x18\x88R \x01(\x0b\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x9d\x01\n\x1a\x44\x65leteUnitOperationRequest\x12\x43\n\x04name\x18\x91N \x01(\tB4\xe0\x41\x02\xfa\x41.\n,saasservicemgmt.googleapis.com/UnitOperation\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xa3\x01\n\x13ListReleasesRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Release\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x95\x01\n\x14ListReleasesResponse\x12M\n\x08releases\x18\x8dR \x03(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"R\n\x11GetReleaseRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\"\xf1\x01\n\x14\x43reateReleaseRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Release\x12\x18\n\nrelease_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12Q\n\x07release\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xc8\x01\n\x14UpdateReleaseRequest\x12Q\n\x07release\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x91\x01\n\x14\x44\x65leteReleaseRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t2\x9d\x35\n\x0fSaasDeployments\x12\xd3\x01\n\x08ListSaas\x12\x42.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest\x1a\x43.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{parent=projects/*/locations/*}/saas\x12\xc3\x01\n\x07GetSaas\x12\x41.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest\x1a\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/saas/*}\x12\xde\x01\n\nCreateSaas\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest\x1a\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\"Q\xda\x41\x13parent,saas,saas_id\x82\xd3\xe4\x93\x02\x35\"-/v1beta1/{parent=projects/*/locations/*}/saas:\x04saas\x12\xe0\x01\n\nUpdateSaas\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest\x1a\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\"S\xda\x41\x10saas,update_mask\x82\xd3\xe4\x93\x02:22/v1beta1/{saas.name=projects/*/locations/*/saas/*}:\x04saas\x12\xa8\x01\n\nDeleteSaas\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1beta1/{name=projects/*/locations/*/saas/*}\x12\xdf\x01\n\x0bListTenants\x12\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest\x1a\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1beta1/{parent=projects/*/locations/*}/tenants\x12\xcc\x01\n\tGetTenant\x12\x43.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest\x1a\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1beta1/{name=projects/*/locations/*/tenants/*}\x12\xed\x01\n\x0c\x43reateTenant\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest\x1a\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\"Z\xda\x41\x17parent,tenant,tenant_id\x82\xd3\xe4\x93\x02:\"0/v1beta1/{parent=projects/*/locations/*}/tenants:\x06tenant\x12\xef\x01\n\x0cUpdateTenant\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest\x1a\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\"\\\xda\x41\x12tenant,update_mask\x82\xd3\xe4\x93\x02\x41\x32\x37/v1beta1/{tenant.name=projects/*/locations/*/tenants/*}:\x06tenant\x12\xaf\x01\n\x0c\x44\x65leteTenant\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1beta1/{name=projects/*/locations/*/tenants/*}\x12\xe7\x01\n\rListUnitKinds\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest\x1aH.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{parent=projects/*/locations/*}/unitKinds\x12\xd4\x01\n\x0bGetUnitKind\x12\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest\x1a;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{name=projects/*/locations/*/unitKinds/*}\x12\xfe\x01\n\x0e\x43reateUnitKind\x12H.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest\x1a;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\"e\xda\x41\x1dparent,unit_kind,unit_kind_id\x82\xd3\xe4\x93\x02?\"2/v1beta1/{parent=projects/*/locations/*}/unitKinds:\tunit_kind\x12\x80\x02\n\x0eUpdateUnitKind\x12H.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest\x1a;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\"g\xda\x41\x15unit_kind,update_mask\x82\xd3\xe4\x93\x02I2.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12`\n\x06labels\x18\xa1Q \x03(\x0b\x32J.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.LabelsEntryB\x03\xe0\x41\x01\x12j\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32O.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x01\n\x16UpdateUnitKindStrategy\x12)\n%UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED\x10\x00\x12&\n\"UPDATE_UNIT_KIND_STRATEGY_ON_START\x10\x01\x12#\n\x1fUPDATE_UNIT_KIND_STRATEGY_NEVER\x10\x02:\x93\x01\xea\x41\x8f\x01\n*saasservicemgmt.googleapis.com/RolloutKind\x12\x46projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}*\x0crolloutKinds2\x0brolloutKindB\x0f\n\r_error_budget\"J\n\x0b\x45rrorBudget\x12\x1a\n\rallowed_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x61llowed_percentage\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"n\n\x0cRolloutStats\x12^\n\x13operations_by_state\x18\x02 \x03(\x0b\x32<.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateB\x03\xe0\x41\x03\"\xad\x02\n\x0eRolloutControl\x12s\n\nrun_params\x18\x02 \x01(\x0b\x32X.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParamsB\x03\xe0\x41\x01H\x00\x12U\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutActionB\x03\xe0\x41\x02\x1a>\n\x16RunRolloutActionParams\x12$\n\x17retry_failed_operations\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x42\x0f\n\raction_params*|\n\rRolloutAction\x12\x1e\n\x1aROLLOUT_ACTION_UNSPECIFIED\x10\x00\x12\x16\n\x12ROLLOUT_ACTION_RUN\x10\x01\x12\x18\n\x14ROLLOUT_ACTION_PAUSE\x10\x02\x12\x19\n\x15ROLLOUT_ACTION_CANCEL\x10\x03\x42\xd6\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x1aSaasRolloutsResourcesProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate", "google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout").msgclass + Rollout::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState").enummodule + RolloutKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind").msgclass + RolloutKind::UpdateUnitKindStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy").enummodule + ErrorBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget").msgclass + RolloutStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats").msgclass + RolloutControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl").msgclass + RolloutControl::RunRolloutActionParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams").msgclass + RolloutAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction").enummodule + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb new file mode 100644 index 000000000000..2ac0ad01734b --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb @@ -0,0 +1,65 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' + + +descriptor_data = "\nHgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aJgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa3\x01\n\x13ListRolloutsRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Rollout\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x95\x01\n\x14ListRolloutsResponse\x12M\n\x08rollouts\x18\x8dR \x03(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"R\n\x11GetRolloutRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Rollout\"\xf1\x01\n\x14\x43reateRolloutRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Rollout\x12\x18\n\nrollout_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12Q\n\x07rollout\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xc8\x01\n\x14UpdateRolloutRequest\x12Q\n\x07rollout\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x91\x01\n\x14\x44\x65leteRolloutRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Rollout\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xab\x01\n\x17ListRolloutKindsRequest\x12\x43\n\x06parent\x18\x96N \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*saasservicemgmt.googleapis.com/RolloutKind\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xa2\x01\n\x18ListRolloutKindsResponse\x12V\n\rrollout_kinds\x18\x8dR \x03(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"Z\n\x15GetRolloutKindRequest\x12\x41\n\x04name\x18\x91N \x01(\tB2\xe0\x41\x02\xfa\x41,\n*saasservicemgmt.googleapis.com/RolloutKind\"\x87\x02\n\x18\x43reateRolloutKindRequest\x12\x43\n\x06parent\x18\x96N \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*saasservicemgmt.googleapis.com/RolloutKind\x12\x1d\n\x0frollout_kind_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12Z\n\x0crollout_kind\x18\x88R \x01(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xd5\x01\n\x18UpdateRolloutKindRequest\x12Z\n\x0crollout_kind\x18\x88R \x01(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x99\x01\n\x18\x44\x65leteRolloutKindRequest\x12\x41\n\x04name\x18\x91N \x01(\tB2\xe0\x41\x02\xfa\x41,\n*saasservicemgmt.googleapis.com/RolloutKind\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t2\x88\x13\n\x0cSaasRollouts\x12\xe3\x01\n\x0cListRollouts\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest\x1aG.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse\"B\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/locations/*}/rollouts\x12\xd0\x01\n\nGetRollout\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest\x1a:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/locations/*/rollouts/*}\x12\xf4\x01\n\rCreateRollout\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest\x1a:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\"^\xda\x41\x19parent,rollout,rollout_id\x82\xd3\xe4\x93\x02<\"1/v1beta1/{parent=projects/*/locations/*}/rollouts:\x07rollout\x12\xf6\x01\n\rUpdateRollout\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest\x1a:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\"`\xda\x41\x13rollout,update_mask\x82\xd3\xe4\x93\x02\x44\x32\x39/v1beta1/{rollout.name=projects/*/locations/*/rollouts/*}:\x07rollout\x12\xb2\x01\n\rDeleteRollout\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest\x1a\x16.google.protobuf.Empty\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33*1/v1beta1/{name=projects/*/locations/*/rollouts/*}\x12\xf3\x01\n\x10ListRolloutKinds\x12J.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest\x1aK.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{parent=projects/*/locations/*}/rolloutKinds\x12\xe0\x01\n\x0eGetRolloutKind\x12H.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest\x1a>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}\x12\x93\x02\n\x11\x43reateRolloutKind\x12K.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest\x1a>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\"q\xda\x41#parent,rollout_kind,rollout_kind_id\x82\xd3\xe4\x93\x02\x45\"5/v1beta1/{parent=projects/*/locations/*}/rolloutKinds:\x0crollout_kind\x12\x95\x02\n\x11UpdateRolloutKind\x12K.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest\x1a>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\"s\xda\x41\x18rollout_kind,update_mask\x82\xd3\xe4\x93\x02R2B/v1beta1/{rollout_kind.name=projects/*/locations/*/rolloutKinds/*}:\x0crollout_kind\x12\xbe\x01\n\x11\x44\x65leteRolloutKind\x12K.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}\x1aR\xca\x41\x1esaasservicemgmt.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd4\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x18SaasRolloutsServiceProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout", "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto"], + ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" + end + end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." +end + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + ListRolloutsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest").msgclass + ListRolloutsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse").msgclass + GetRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest").msgclass + CreateRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest").msgclass + UpdateRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest").msgclass + DeleteRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest").msgclass + ListRolloutKindsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest").msgclass + ListRolloutKindsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse").msgclass + GetRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest").msgclass + CreateRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest").msgclass + UpdateRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest").msgclass + DeleteRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest").msgclass + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb new file mode 100644 index 000000000000..48e36153293b --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb @@ -0,0 +1,65 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto for package 'Google.Cloud.SaasPlatform.SaasServiceMgmt.V1beta1' +# Original file comments: +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb' + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + module SaasRollouts + # Manages the rollout of SaaS services. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts' + + # Retrieve a collection of rollouts. + rpc :ListRollouts, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse + # Retrieve a single rollout. + rpc :GetRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout + # Create a new rollout. + rpc :CreateRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout + # Update a single rollout. + rpc :UpdateRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout + # Delete a single rollout. + rpc :DeleteRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, ::Google::Protobuf::Empty + # Retrieve a collection of rollout kinds. + rpc :ListRolloutKinds, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse + # Retrieve a single rollout kind. + rpc :GetRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind + # Create a new rollout kind. + rpc :CreateRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind + # Update a single rollout kind. + rpc :UpdateRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind + # Delete a single rollout kind. + rpc :DeleteRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, ::Google::Protobuf::Empty + end + + Stub = Service.rpc_stub_class + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md new file mode 100644 index 000000000000..10d10d09fe56 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md @@ -0,0 +1,4 @@ +# SaaS Runtime V1BETA1 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..d59ba51a5612 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb @@ -0,0 +1,473 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb new file mode 100644 index 000000000000..0f5acf0a5538 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Rich semantic information of an API field beyond basic typing. + # @!attribute [rw] format + # @return [::Google::Api::FieldInfo::Format] + # The standard format of a field value. This does not explicitly configure + # any API consumer, just documents the API's format for the field it is + # applied to. + # @!attribute [rw] referenced_types + # @return [::Array<::Google::Api::TypeReference>] + # The type(s) that the annotated, generic field may represent. + # + # Currently, this must only be used on fields of type `google.protobuf.Any`. + # Supporting other generic types may be considered in the future. + class FieldInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The standard format of a field value. The supported formats are all backed + # by either an RFC defined by the IETF or a Google-defined AIP. + module Format + # Default, unspecified value. + FORMAT_UNSPECIFIED = 0 + + # Universally Unique Identifier, version 4, value as defined by + # https://datatracker.ietf.org/doc/html/rfc4122. The value may be + # normalized to entirely lowercase letters. For example, the value + # `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to + # `f47ac10b-58cc-0372-8567-0e02b2c3d479`. + UUID4 = 1 + + # Internet Protocol v4 value as defined by [RFC + # 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be + # condensed, with leading zeros in each octet stripped. For example, + # `001.022.233.040` would be condensed to `1.22.233.40`. + IPV4 = 2 + + # Internet Protocol v6 value as defined by [RFC + # 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be + # normalized to entirely lowercase letters with zeros compressed, following + # [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, + # the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. + IPV6 = 3 + + # An IP address in either v4 or v6 format as described by the individual + # values defined herein. See the comments on the IPV4 and IPV6 types for + # allowed normalizations of each. + IPV4_OR_IPV6 = 4 + end + end + + # A reference to a message type, for use in {::Google::Api::FieldInfo FieldInfo}. + # @!attribute [rw] type_name + # @return [::String] + # The name of the type that the annotated, generic field may represent. + # If the type is in the same protobuf package, the value can be the simple + # message name e.g., `"MyMessage"`. Otherwise, the value must be the + # fully-qualified message name e.g., `"google.library.v1.Book"`. + # + # If the type(s) are unknown to the service (e.g. the field accepts generic + # user input), use the wildcard `"*"` to denote this behavior. + # + # See [AIP-202](https://google.aip.dev/202#type-references) for more details. + class TypeReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb new file mode 100644 index 000000000000..6a0da327d9a7 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb @@ -0,0 +1,237 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + # Blueprints are OCI Images that contain all of the artifacts needed to + # provision a unit. Metadata such as, type of the engine used to actuate the + # blueprint (e.g. terraform, helm etc) and version will come from the image + # manifest. If the hostname is omitted, it will be assumed to be the regional + # path to Artifact Registry (eg. us-east1-docker.pkg.dev). + # @!attribute [rw] package + # @return [::String] + # Optional. Immutable. URI to a blueprint used by the Unit (required unless + # unitKind or release is set). + # @!attribute [r] engine + # @return [::String] + # Output only. Type of the engine used to actuate the blueprint. e.g. + # terraform, helm etc. + # @!attribute [r] version + # @return [::String] + # Output only. Version metadata if present on the blueprint. + class Blueprint + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UnitVariable describes a parameter for a Unit. + # @!attribute [rw] variable + # @return [::String] + # Required. Immutable. Name of the variable from actuation configs. + # @!attribute [rw] type + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable::Type] + # Optional. Immutable. Name of a supported variable type. Supported types are + # string, int, bool. + # @!attribute [rw] value + # @return [::String] + # Optional. String encoded value for the variable. + class UnitVariable + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enumeration of variable types. + module Type + # Variable type is unspecified. + TYPE_UNSPECIFIED = 0 + + # Variable type is string. + STRING = 1 + + # Variable type is int. + INT = 2 + + # Variable type is bool. + BOOL = 3 + end + end + + # UnitCondition describes the status of an Unit. UnitCondition is individual + # components that contribute to an overall state. + # @!attribute [rw] status + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitCondition::Status] + # Required. Status of the condition. + # @!attribute [rw] type + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitCondition::Type] + # Required. Type of the condition. + # @!attribute [rw] last_transition_time + # @return [::Google::Protobuf::Timestamp] + # Required. Last time the condition transited from one status to another. + # @!attribute [rw] message + # @return [::String] + # Required. Human readable message indicating details about the last + # transition. + # @!attribute [rw] reason + # @return [::String] + # Required. Brief reason for the condition's last transition. + class UnitCondition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enumeration of condition statuses. + module Status + # Condition status is unspecified. + STATUS_UNSPECIFIED = 0 + + # Condition is unknown. + STATUS_UNKNOWN = 1 + + # Condition is true. + STATUS_TRUE = 2 + + # Condition is false. + STATUS_FALSE = 3 + end + + # Enumeration of condition types. + module Type + # Condition type is unspecified. + TYPE_UNSPECIFIED = 0 + + # Condition type is ready. + TYPE_READY = 1 + + # Condition type is updating. + TYPE_UPDATING = 2 + + # Condition type is provisioned. + TYPE_PROVISIONED = 3 + + # Condition type is operationError. + # True when the last unit operation fails with a non-ignorable error. + TYPE_OPERATION_ERROR = 4 + end + end + + # UnitOperationCondition describes the status of an Unit Operation. + # UnitOperationCondition is individual components that contribute to an overall + # state. + # @!attribute [rw] status + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition::Status] + # Required. Status of the condition. + # @!attribute [rw] type + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition::Type] + # Required. Type of the condition. + # @!attribute [rw] last_transition_time + # @return [::Google::Protobuf::Timestamp] + # Required. Last time the condition transited from one status to another. + # @!attribute [rw] message + # @return [::String] + # Required. Human readable message indicating details about the last + # transition. + # @!attribute [rw] reason + # @return [::String] + # Required. Brief reason for the condition's last transition. + class UnitOperationCondition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enumeration of condition statuses. + module Status + # Condition status is unspecified. + STATUS_UNSPECIFIED = 0 + + # Condition is unknown. + STATUS_UNKNOWN = 1 + + # Condition is true. + STATUS_TRUE = 2 + + # Condition is false. + STATUS_FALSE = 3 + end + + # Enumeration of condition types. + module Type + # Condition type is unspecified. + TYPE_UNSPECIFIED = 0 + + # Condition type is scheduled. + TYPE_SCHEDULED = 2 + + # Condition type is running. + TYPE_RUNNING = 3 + + # Condition type is succeeded. + TYPE_SUCCEEDED = 4 + + # Condition type is cancelled. + TYPE_CANCELLED = 5 + + # Indicates if AppHub app has been created. + TYPE_APP_CREATED = 6 + + # Indicates if services and workloads have been registered with AppHub. + TYPE_APP_COMPONENTS_REGISTERED = 7 + end + end + + # Represents the aggregation of a set of population of like records by a + # certain group. For example, a collection of unit counts can be aggregated and + # grouped by their state. + # @!attribute [rw] group + # @return [::String] + # Required. Group by which to aggregate. + # @!attribute [rw] count + # @return [::Integer] + # Required. Number of records in the group. + class Aggregate + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UnitOperationErrorCategory describes the error category of the unit + # operation. + module UnitOperationErrorCategory + # Unit operation error category is unspecified + UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED = 0 + + # Unit operation error category is not applicable, or it is not an error + NOT_APPLICABLE = 1 + + # Unit operation error category is fatal + FATAL = 2 + + # Unit operation error category is retriable + RETRIABLE = 3 + + # Unit operation error category is ignorable + IGNORABLE = 4 + + # Unit operation error category is standard, counts towards Rollout error + # budget + STANDARD = 5 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb new file mode 100644 index 000000000000..77d6b2a09c64 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb @@ -0,0 +1,837 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + # Location information that the service is available in. + # @!attribute [rw] name + # @return [::String] + # Optional. Name of location. + class Location + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Saas is a representation of a SaaS service managed by the Producer. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/saas/\\{saas}" + # @!attribute [rw] locations + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Location>] + # Optional. List of locations that the service is available in. Rollout + # refers to the list to generate a rollout plan. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class Saas + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Tenant represents the service producer side of an instance of the + # service created based on a request from a consumer. In a typical scenario a + # Tenant has a one-to-one mapping with a resource given out to a service + # consumer. + # + # Example: + # + # tenant: + # name: "projects/svc1/locations/loc/tenants/inst-068afff8" + # consumer_resource: "projects/gshoe/locations/loc/shoes/black-shoe" + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/tenants/\\{tenant}" + # @!attribute [rw] consumer_resource + # @return [::String] + # Optional. Immutable. A reference to the consumer resource this SaaS Tenant + # is representing. + # + # The relationship with a consumer resource can be used by SaaS Runtime for + # retrieving consumer-defined settings and policies such as maintenance + # policies (using Unified Maintenance Policy API). + # @!attribute [rw] saas + # @return [::String] + # Required. Immutable. A reference to the Saas that defines the product + # (managed service) that the producer wants to manage with SaaS Runtime. Part + # of the SaaS Runtime common data model. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class Tenant + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Definition of a Unit. Units belonging to the same UnitKind are managed + # together; for example they follow the same release model (blueprints, + # versions etc.) and are typically rolled out together. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/unitKinds/\\{unitKind}" + # @!attribute [rw] default_release + # @return [::String] + # Optional. A reference to the Release object to use as default for creating + # new units of this UnitKind (optional). + # + # If not specified, a new unit must explicitly reference which release to use + # for its creation. + # @!attribute [rw] dependencies + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Dependency>] + # Optional. Immutable. List of other unit kinds that this release will depend + # on. Dependencies will be automatically provisioned if not found. + # Maximum 10. + # @!attribute [rw] input_variable_mappings + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VariableMapping>] + # Optional. List of inputVariables for this release that will either be + # retrieved from a dependency’s outputVariables, or will be passed on to a + # dependency’s inputVariables. Maximum 100. + # @!attribute [rw] output_variable_mappings + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VariableMapping>] + # Optional. List of outputVariables for this unit kind will be passed to this + # unit's outputVariables. Maximum 100. + # @!attribute [rw] saas + # @return [::String] + # Required. Immutable. A reference to the Saas that defines the product + # (managed service) that the producer wants to manage with SaaS Runtime. Part + # of the SaaS Runtime common data model. Immutable once set. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class UnitKind + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A unit of deployment that has its lifecycle via a CRUD API using an actuation + # engine under the hood (e.g. based on Terraform, Helm or a custom + # implementation provided by a service producer). A building block of a SaaS + # Tenant. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/units/\\{unit}" + # @!attribute [rw] unit_kind + # @return [::String] + # Optional. Reference to the UnitKind this Unit belongs to. Immutable once + # set. + # @!attribute [r] release + # @return [::String] + # Optional. Output only. The current Release object for this Unit. + # @!attribute [rw] tenant + # @return [::String] + # Optional. Reference to the Saas Tenant resource this unit belongs to. This + # for example informs the maintenance policies to use for scheduling future + # updates on a unit. (optional and immutable once created) + # @!attribute [r] ongoing_operations + # @return [::Array<::String>] + # Optional. Output only. List of concurrent UnitOperations that are operating + # on this Unit. + # @!attribute [r] pending_operations + # @return [::Array<::String>] + # Optional. Output only. List of pending (wait to be executed) UnitOperations + # for this unit. + # @!attribute [r] scheduled_operations + # @return [::Array<::String>] + # Optional. Output only. List of scheduled UnitOperations for this unit. + # @!attribute [r] dependents + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitDependency>] + # Optional. Output only. List of Units that depend on this unit. Unit can + # only be deprovisioned if this list is empty. Maximum 1000. + # @!attribute [r] dependencies + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitDependency>] + # Optional. Output only. Set of dependencies for this unit. Maximum 10. + # @!attribute [r] input_variables + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] + # Optional. Output only. Indicates the current input variables deployed by + # the unit + # @!attribute [r] output_variables + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] + # Optional. Output only. Set of key/value pairs corresponding to output + # variables from execution of actuation templates. The variables are declared + # in actuation configs (e.g in helm chart or terraform) and the values are + # fetched and returned by the actuation engine upon completion of execution. + # @!attribute [rw] maintenance + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::MaintenanceSettings] + # Optional. Captures requested directives for performing future maintenance + # on the unit. This includes a request for the unit to skip maintenance for a + # period of time and remain pinned to its current release as well as controls + # for postponing maintenance scheduled in future. + # @!attribute [r] state + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::UnitState] + # Optional. Output only. Current lifecycle state of the resource (e.g. if + # it's being created or ready to use). + # @!attribute [r] conditions + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitCondition>] + # Optional. Output only. A set of conditions which indicate the various + # conditions this resource can have. + # @!attribute [rw] management_mode + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::ManagementMode] + # Optional. Immutable. Indicates whether the Unit life cycle is controlled + # by the user or by the system. + # Immutable once created. + # @!attribute [r] system_managed_state + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::SystemManagedState] + # Optional. Output only. Indicates the system managed state of the unit. + # @!attribute [r] system_cleanup_at + # @return [::Google::Protobuf::Timestamp] + # Optional. Output only. If set, indicates the time when the system will + # start removing the unit. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class Unit + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Captures requested directives for performing future maintenance on the + # unit. This includes a request for the unit to skip maintenance for a period + # of time and remain pinned to its current release as well as controls for + # postponing maintenance scheduled in future. + # @!attribute [rw] pinned_until_time + # @return [::Google::Protobuf::Timestamp] + # Optional. If present, it fixes the release on the unit until the given + # time; i.e. changes to the release field will be rejected. Rollouts should + # and will also respect this by not requesting an upgrade in the first + # place. + class MaintenanceSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UnitState annotates what is the current state of the unit itself. + module UnitState + # Unspecified state. + UNIT_STATE_UNSPECIFIED = 0 + + # Unit is not provisioned. + UNIT_STATE_NOT_PROVISIONED = 1 + + # Unit is being provisioned. + UNIT_STATE_PROVISIONING = 2 + + # Unit is being updated. This is typically when a unit is being upgraded to + # a new release or some of the input variables on the Unit is being + # changed. Certain kinds of updates may cause the Unit to become unusable + # while the update is in progress. + UNIT_STATE_UPDATING = 3 + + # Unit is being deleted. + UNIT_STATE_DEPROVISIONING = 4 + + # Unit has been provisioned and is ready for use + UNIT_STATE_READY = 5 + + # Unit has error, when it is not ready and some error operation + UNIT_STATE_ERROR = 6 + end + + # ManagementMode describes who is responsible for the management of the unit. + module ManagementMode + MANAGEMENT_MODE_UNSPECIFIED = 0 + + # Unit's lifecycle is managed by the user. + MANAGEMENT_MODE_USER = 1 + + # The system will decide when to deprovision and delete the unit. + # User still can deprovision or delete the unit manually. + MANAGEMENT_MODE_SYSTEM = 2 + end + + module SystemManagedState + SYSTEM_MANAGED_STATE_UNSPECIFIED = 0 + + # Unit has dependents attached. + SYSTEM_MANAGED_STATE_ACTIVE = 1 + + # Unit has no dependencies attached, but attachment is allowed. + SYSTEM_MANAGED_STATE_INACTIVE = 2 + + # Unit has no dependencies attached, and attachment is not allowed. + SYSTEM_MANAGED_STATE_DECOMMISSIONED = 3 + end + end + + # Set of dependencies for this unit. Maximum 10. + # @!attribute [r] alias + # @return [::String] + # Output only. Alias for the name of the dependency. + # @!attribute [r] unit + # @return [::String] + # Output only. A reference to the Unit object. + class UnitDependency + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UnitOperation encapsulates the intent of changing/interacting with the + # service component represented by the specific Unit. Multiple UnitOperations + # can be created (requested) and scheduled in the future, however only one will + # be allowed to execute at a time (that can change in the future for + # non-mutating operations). + # + # UnitOperations allow different actors interacting with the same + # unit to focus only on the change they have requested. + # + # This is a base object that contains the common fields in all unit operations. + # Next: 19 + # @!attribute [rw] provision + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Provision] + # Note: The following fields are mutually exclusive: `provision`, `upgrade`, `deprovision`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] upgrade + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Upgrade] + # Note: The following fields are mutually exclusive: `upgrade`, `provision`, `deprovision`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] deprovision + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Deprovision] + # Note: The following fields are mutually exclusive: `deprovision`, `provision`, `upgrade`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/unitOperations/\\{unitOperation}" + # @!attribute [rw] unit + # @return [::String] + # Required. Immutable. The Unit a given UnitOperation will act upon. + # @!attribute [rw] parent_unit_operation + # @return [::String] + # Optional. Reference to parent resource: UnitOperation. If an operation + # needs to create other operations as part of its workflow, each of the child + # operations should have this field set to the parent. This can be used for + # tracing. (Optional) + # @!attribute [rw] rollout + # @return [::String] + # Optional. Specifies which rollout created this Unit Operation. This cannot + # be modified and is used for filtering purposes only. If a dependent unit + # and unit operation are created as part of another unit operation, they will + # use the same rolloutId. + # @!attribute [rw] cancel + # @return [::Boolean] + # Optional. When true, attempt to cancel the operation. Cancellation may fail + # if the operation is already executing. (Optional) + # @!attribute [r] state + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation::UnitOperationState] + # Optional. Output only. UnitOperationState describes the current state of + # the unit operation. + # @!attribute [r] conditions + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition>] + # Optional. Output only. A set of conditions which indicate the various + # conditions this resource can have. + # @!attribute [rw] schedule + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Schedule] + # Optional. When to schedule this operation. + # @!attribute [r] engine_state + # @return [::String] + # Optional. Output only. The engine state for on-going + # deployment engine operation(s). + # This field is opaque for external usage. + # @!attribute [r] error_category + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationErrorCategory] + # Optional. Output only. UnitOperationErrorCategory describe the error + # category. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class UnitOperation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # UnitOperationState describes the current state of the unit operation. + module UnitOperationState + UNIT_OPERATION_STATE_UNKNOWN = 0 + + # Unit operation is accepted but not ready to run. + UNIT_OPERATION_STATE_PENDING = 1 + + # Unit operation is accepted and scheduled. + UNIT_OPERATION_STATE_SCHEDULED = 2 + + # Unit operation is running. + UNIT_OPERATION_STATE_RUNNING = 4 + + # Unit operation has completed successfully. + UNIT_OPERATION_STATE_SUCCEEDED = 5 + + # Unit operation has failed. + UNIT_OPERATION_STATE_FAILED = 6 + + # Unit operation was cancelled. + UNIT_OPERATION_STATE_CANCELLED = 7 + end + end + + # Provision is the unit operation that provision the underlying resources + # represented by a Unit. Can only execute if the Unit is not currently + # provisioned. + # @!attribute [rw] release + # @return [::String] + # Optional. Reference to the Release object to use for the Unit. (optional). + # @!attribute [rw] input_variables + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] + # Optional. Set of input variables. Maximum 100. (optional) + class Provision + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Deprovision is the unit operation that deprovision the underlying + # resources represented by a Unit. Can only execute if the Unit is currently + # provisioned. + class Deprovision + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Upgrade is the unit operation that upgrades a provisioned unit, which may + # also include the underlying resources represented by a Unit. Can only execute + # if the Unit is currently provisioned. + # @!attribute [rw] release + # @return [::String] + # Optional. Reference to the Release object to use for the Unit. (optional). + # @!attribute [rw] input_variables + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] + # Optional. Set of input variables. Maximum 100. (optional) + class Upgrade + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A time specification to schedule the maintenance. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Start of operation. If not set, will be set to the start of the + # next window. (optional) + class Schedule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A new version to be propagated and deployed to units. This includes pointers + # to packaged blueprints for actuation (e.g Helm or Terraform configuration + # packages) via artifact registry. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/releases/\\{release}" + # @!attribute [rw] unit_kind + # @return [::String] + # Required. Immutable. Reference to the UnitKind this Release corresponds to + # (required and immutable once created). + # @!attribute [rw] blueprint + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Blueprint] + # Optional. Blueprints are OCI Images that contain all of the artifacts + # needed to provision a unit. + # @!attribute [rw] release_requirements + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release::ReleaseRequirements] + # Optional. Set of requirements to be fulfilled on the Unit when using this + # Release. + # @!attribute [r] input_variables + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] + # Optional. Output only. List of input variables declared on the blueprint + # and can be present with their values on the unit spec + # @!attribute [r] output_variables + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] + # Optional. Output only. List of output variables declared on the blueprint + # and can be present with their values on the unit status + # @!attribute [rw] input_variable_defaults + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] + # Optional. Mapping of input variables to default values. Maximum 100 + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class Release + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Set of requirements to be fulfilled on the Unit when using this Release. + # @!attribute [rw] upgradeable_from_releases + # @return [::Array<::String>] + # Optional. A list of releases from which a unit can be upgraded to this + # one (optional). If left empty no constraints will be applied. When + # provided, unit upgrade requests to this release will check and enforce + # this constraint. + class ReleaseRequirements + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Mapping of input variables to their respective output variable for + # depedenencies + # @!attribute [rw] from + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::FromMapping] + # Optional. Output variables which will get their values from dependencies + # + # Note: The following fields are mutually exclusive: `from`, `to`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] to + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ToMapping] + # Optional. Input variables whose values will be passed on to dependencies. + # + # Note: The following fields are mutually exclusive: `to`, `from`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] variable + # @return [::String] + # Required. name of the variable + class VariableMapping + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Output variables whose values will be passed on to dependencies + # @!attribute [rw] dependency + # @return [::String] + # Required. Alias of the dependency that the outputVariable will pass its + # value to + # @!attribute [rw] output_variable + # @return [::String] + # Required. Name of the outputVariable on the dependency + class FromMapping + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Input variables whose values will be passed on to dependencies + # @!attribute [rw] dependency + # @return [::String] + # Required. Alias of the dependency that the inputVariable will pass its + # value to + # @!attribute [rw] input_variable + # @return [::String] + # Required. Name of the inputVariable on the dependency + # @!attribute [rw] ignore_for_lookup + # @return [::Boolean] + # Optional. Tells SaaS Runtime if this mapping should be used during lookup + # or not + class ToMapping + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Dependency represent a single dependency with another unit kind by alias. + # @!attribute [rw] unit_kind + # @return [::String] + # Required. Immutable. The unit kind of the dependency. + # @!attribute [rw] alias + # @return [::String] + # Required. An alias for the dependency. Used for input variable mapping. + class Dependency + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb new file mode 100644 index 000000000000..25428282bb54 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb @@ -0,0 +1,976 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + # The request structure for the ListSaas method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the saas. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of saas to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListSaasRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListSaas method. + # @!attribute [rw] saas + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] + # The resulting saas. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListSaas call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListSaasResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetSaas method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetSaasRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateSaas method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the saas. + # @!attribute [rw] saas_id + # @return [::String] + # Required. The ID value for the new saas. + # @!attribute [rw] saas + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # Required. The desired state for the saas. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateSaasRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateSaas method. + # @!attribute [rw] saas + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] + # Required. The desired state for the saas. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # Saas resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Saas will be overwritten. + class UpdateSaasRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteSaas method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the saas. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the saas. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteSaasRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the ListTenants method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the tenant. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of tenants to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListTenantsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListTenants method. + # @!attribute [rw] tenants + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] + # The resulting tenants. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListTenants call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListTenantsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetTenant method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetTenantRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateTenant method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the tenant. + # @!attribute [rw] tenant_id + # @return [::String] + # Required. The ID value for the new tenant. + # @!attribute [rw] tenant + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # Required. The desired state for the tenant. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateTenantRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateTenant method. + # @!attribute [rw] tenant + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] + # Required. The desired state for the tenant. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # Tenant resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Tenant will be overwritten. + class UpdateTenantRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteTenant method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the tenant. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the tenant. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteTenantRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the ListUnitKinds method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the unit kind. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of unit kinds to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListUnitKindsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListUnitKinds method. + # @!attribute [rw] unit_kinds + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] + # The resulting unit kinds. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListUnitKinds call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListUnitKindsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetUnitKind method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetUnitKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateUnitKind method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the unit kind. + # @!attribute [rw] unit_kind_id + # @return [::String] + # Required. The ID value for the new unit kind. + # @!attribute [rw] unit_kind + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # Required. The desired state for the unit kind. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateUnitKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateUnitKind method. + # @!attribute [rw] unit_kind + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] + # Required. The desired state for the unit kind. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # UnitKind resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # UnitKind will be overwritten. + class UpdateUnitKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteUnitKind method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the unit kind. This + # is used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit kind. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteUnitKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the ListUnits method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the unit. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of units to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListUnitsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListUnits method. + # @!attribute [rw] units + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] + # The resulting units. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListUnits call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListUnitsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetUnit method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetUnitRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateUnit method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the unit. + # @!attribute [rw] unit_id + # @return [::String] + # Required. The ID value for the new unit. + # @!attribute [rw] unit + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # Required. The desired state for the unit. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateUnitRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateUnit method. + # @!attribute [rw] unit + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] + # Required. The desired state for the unit. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # Unit resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Unit will be overwritten. + class UpdateUnitRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteUnit method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the unit. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteUnitRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the ListUnitOperations method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the unit operation. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of unit operations to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListUnitOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListUnitOperations method. + # @!attribute [rw] unit_operations + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] + # The resulting unit operations. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListUnitOperations call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListUnitOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetUnitOperation method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetUnitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateUnitOperation method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the unit operation. + # @!attribute [rw] unit_operation_id + # @return [::String] + # Required. The ID value for the new unit operation. + # @!attribute [rw] unit_operation + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # Required. The desired state for the unit operation. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateUnitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateUnitOperation method. + # @!attribute [rw] unit_operation + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] + # Required. The desired state for the unit operation. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # UnitOperation resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # UnitOperation will be overwritten. + class UpdateUnitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteUnitOperation method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the unit operation. + # This is used with state-changing methods to prevent accidental overwrites + # when multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the unit operation. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteUnitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the ListReleases method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the release. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of releases to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListReleasesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListReleases method. + # @!attribute [rw] releases + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] + # The resulting releases. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListReleases call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListReleasesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetRelease method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetReleaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateRelease method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the release. + # @!attribute [rw] release_id + # @return [::String] + # Required. The ID value for the new release. + # @!attribute [rw] release + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # Required. The desired state for the release. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateReleaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateRelease method. + # @!attribute [rw] release + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] + # Required. The desired state for the release. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # Release resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Release will be overwritten. + class UpdateReleaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteRelease method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the release. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the release. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteReleaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb new file mode 100644 index 000000000000..8bf8722fd171 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb @@ -0,0 +1,389 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + # Represents a single rollout execution and its results + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/rollout/\\{rollout_id}" + # @!attribute [rw] release + # @return [::String] + # Optional. Immutable. Name of the Release that gets rolled out to target + # Units. Required if no other type of release is specified. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Output only. The time when the rollout started executing. Will be + # empty if the rollout hasn't started yet. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Output only. The time when the rollout finished execution + # (regardless of success, failure, or cancellation). Will be empty if the + # rollout hasn't finished yet. Once set, the rollout is in terminal state and + # all the results are final. + # @!attribute [r] state + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout::RolloutState] + # Output only. Current state of the rollout. + # @!attribute [r] state_message + # @return [::String] + # Output only. Human readable message indicating details about the last state + # transition. + # @!attribute [r] state_transition_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Output only. The time when the rollout transitioned into its + # current state. + # @!attribute [r] root_rollout + # @return [::String] + # Optional. Output only. The root rollout that this rollout is stemming from. + # The resource name (full URI of the resource) following the standard naming + # scheme: + # + # "projects/\\{project}/locations/\\{location}/rollouts/\\{rollout_id}" + # @!attribute [r] parent_rollout + # @return [::String] + # Optional. Output only. The direct parent rollout that this rollout is + # stemming from. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/rollouts/\\{rollout_id}" + # @!attribute [rw] rollout_orchestration_strategy + # @return [::String] + # Optional. The strategy used for executing this Rollout. + # This strategy will override whatever strategy is specified in the + # RolloutType. If not specified on creation, the + # strategy from RolloutType will be used. + # + # There are two supported values strategies which are used to control + # - "Google.Cloud.Simple.AllAtOnce" + # - "Google.Cloud.Simple.OneLocationAtATime" + # + # A rollout with one of these simple strategies will rollout across + # all locations defined in the targeted UnitKind's Saas Locations. + # @!attribute [rw] unit_filter + # @return [::String] + # Optional. CEL(https://github.com/google/cel-spec) formatted filter string + # against Unit. The filter will be applied to determine the eligible unit + # population. This filter can only reduce, but not expand the scope of the + # rollout. If not provided, the unit_filter from the RolloutType will be + # used. + # @!attribute [rw] rollout_kind + # @return [::String] + # Optional. Immutable. Name of the RolloutKind this rollout is stemming from + # and adhering to. + # @!attribute [r] stats + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutStats] + # Optional. Output only. Details about the progress of the rollout. + # @!attribute [rw] control + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutControl] + # Optional. Requested change to the execution of this rollout. + # Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning + # the rollout will be executed to completion while progressing through + # all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING -> + # FAILED). Requests can only be made when the Rollout is in a non-terminal + # state. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class Rollout + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The current state of the rollout. + module RolloutState + # Unspecified state. + ROLLOUT_STATE_UNSPECIFIED = 0 + + # Rollout is in progress. + ROLLOUT_STATE_RUNNING = 1 + + # Rollout has been paused. + ROLLOUT_STATE_PAUSED = 2 + + # Rollout completed successfully. + ROLLOUT_STATE_SUCCEEDED = 3 + + # Rollout has failed. + ROLLOUT_STATE_FAILED = 4 + + # Rollout has been canceled. + ROLLOUT_STATE_CANCELLED = 5 + + # Rollout is waiting for some condition to be met before starting. + ROLLOUT_STATE_WAITING = 6 + + # Rollout is being canceled. + ROLLOUT_STATE_CANCELLING = 7 + + # Rollout is being resumed. + ROLLOUT_STATE_RESUMING = 8 + + # Rollout is being paused. + ROLLOUT_STATE_PAUSING = 9 + end + end + + # An object that describes various settings of Rollout execution. Includes + # built-in policies across GCP and GDC, and customizable policies. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name (full URI of the resource) following the + # standard naming scheme: + # + # "projects/\\{project}/locations/\\{location}/rolloutKinds/\\{rollout_kind_id}" + # @!attribute [rw] unit_kind + # @return [::String] + # Required. Immutable. UnitKind that this rollout kind corresponds to. + # Rollouts stemming from this rollout kind will target the units of this unit + # kind. In other words, this defines the population of target units to be + # upgraded by rollouts. + # @!attribute [rw] rollout_orchestration_strategy + # @return [::String] + # Optional. The strategy used for executing a Rollout. This is a required + # field. + # + # There are two supported values strategies which are used to control + # - "Google.Cloud.Simple.AllAtOnce" + # - "Google.Cloud.Simple.OneLocationAtATime" + # + # A rollout with one of these simple strategies will rollout across + # all locations defined in the associated UnitKind's Saas Locations. + # @!attribute [rw] unit_filter + # @return [::String] + # Optional. CEL(https://github.com/google/cel-spec) formatted filter string + # against Unit. The filter will be applied to determine the eligible unit + # population. This filter can only reduce, but not expand the scope of the + # rollout. + # @!attribute [rw] update_unit_kind_strategy + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind::UpdateUnitKindStrategy] + # Optional. The config for updating the unit kind. By default, the unit kind + # will be updated on the rollout start. + # @!attribute [rw] error_budget + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ErrorBudget] + # Optional. The configuration for error budget. If the number of failed units + # exceeds max(allowed_count, allowed_ratio * total_units), the rollout will + # be paused. If not set, all units will be attempted to be updated regardless + # of the number of failures encountered. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels on the resource, which can be used for categorization. + # similar to Kubernetes resource labels. + # @!attribute [rw] annotations + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Annotations is an unstructured key-value map stored with a + # resource that may be set by external tools to store and retrieve arbitrary + # metadata. They are not queryable and should be preserved when modifying + # objects. + # + # More info: https://kubernetes.io/docs/user-guide/annotations + # @!attribute [r] uid + # @return [::String] + # Output only. The unique identifier of the resource. UID is unique in the + # time and space for this resource within the scope of the service. It is + # typically generated by the server on successful creation of a resource + # and must not be changed. UID is used to uniquely identify resources + # with resource name reuses. This should be a UUID4. + # @!attribute [r] etag + # @return [::String] + # Output only. An opaque value that uniquely identifies a version or + # generation of a resource. It can be used to confirm that the client + # and server agree on the ordering of a resource being written. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp when the resource was last updated. Any + # change to the resource made by users must refresh this value. + # Changes to a resource made by the service should refresh this value. + class RolloutKind + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AnnotationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + module UpdateUnitKindStrategy + # Strategy unspecified. + UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED = 0 + + # Update the unit kind strategy on the rollout start. + UPDATE_UNIT_KIND_STRATEGY_ON_START = 1 + + # Never update the unit kind. + UPDATE_UNIT_KIND_STRATEGY_NEVER = 2 + end + end + + # The configuration for error budget. If the number of failed units exceeds + # max(allowed_count, allowed_ratio * total_units), the rollout will be paused. + # @!attribute [rw] allowed_count + # @return [::Integer] + # Optional. The maximum number of failed units allowed in a location without + # pausing the rollout. + # @!attribute [rw] allowed_percentage + # @return [::Integer] + # Optional. The maximum percentage of units allowed to fail (0, 100] within a + # location without pausing the rollout. + class ErrorBudget + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # RolloutStats contains information about the progress of a rollout. + # @!attribute [r] operations_by_state + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Aggregate>] + # Output only. A breakdown of the progress of operations triggered by the + # rollout. Provides a count of Operations by their state. This can be used to + # determine the number of units which have been updated, or are scheduled to + # be updated. + # + # There will be at most one entry per group. + # Possible values for operation groups are: + # - "SCHEDULED" + # - "PENDING" + # - "RUNNING" + # - "SUCCEEDED" + # - "FAILED" + # - "CANCELLED" + class RolloutStats + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # RolloutControl provides a way to request a change to the execution of a + # Rollout by pausing or canceling it. + # @!attribute [rw] run_params + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutControl::RunRolloutActionParams] + # Optional. Parameters for the RUN action. It is an error to specify this + # if the RolloutAction is not set to RUN. By default, the rollout will + # retry failed operations when resumed. + # @!attribute [rw] action + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutAction] + # Required. Action to be performed on the Rollout. + # The default behavior is to run the rollout until it naturally reaches a + # terminal state. + class RolloutControl + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Parameters for the RUN action controlling the behavior of the rollout + # when it is resumed from a PAUSED state. + # @!attribute [rw] retry_failed_operations + # @return [::Boolean] + # Required. If true, the rollout will retry failed operations when resumed. + # This is applicable only the current state of the Rollout is PAUSED and + # the requested action is RUN. + class RunRolloutActionParams + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # RolloutAction indicates the action to be performed on the Rollout. + module RolloutAction + # Unspecified action, will be treated as RUN by default. + ROLLOUT_ACTION_UNSPECIFIED = 0 + + # Run the Rollout until it naturally reaches a terminal state. + # A rollout requested to run will progress through all natural Rollout + # States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED). + # If retriable errors are encountered during the rollout, the rollout + # will paused by default and can be resumed by re-requesting this RUN + # action. + ROLLOUT_ACTION_RUN = 1 + + # Pause the Rollout until it is resumed (i.e. RUN is requested). + ROLLOUT_ACTION_PAUSE = 2 + + # Cancel the Rollout permanently. + ROLLOUT_ACTION_CANCEL = 3 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb new file mode 100644 index 000000000000..62274e2bab73 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb @@ -0,0 +1,344 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module SaasPlatform + module SaasServiceMgmt + module V1beta1 + # The request structure for the ListRollouts method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the rollout. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of rollouts to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListRolloutsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListRollouts method. + # @!attribute [rw] rollouts + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] + # The resulting rollouts. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListRollouts call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListRolloutsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetRollout method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetRolloutRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateRollout method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the rollout. + # @!attribute [rw] rollout_id + # @return [::String] + # Required. The ID value for the new rollout. + # @!attribute [rw] rollout + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # Required. The desired state for the rollout. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateRolloutRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateRollout method. + # @!attribute [rw] rollout + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] + # Required. The desired state for the rollout. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # Rollout resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # Rollout will be overwritten. + class UpdateRolloutRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteRollout method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the rollout. This is + # used with state-changing methods to prevent accidental overwrites when + # multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the rollout. The Any wildcard (`*`) requires that the resource + # must already exists, and the Not Any wildcard (`!*`) requires that it must + # not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteRolloutRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the ListRolloutKinds method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the rollout kind. + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of rollout kinds to send per page. + # @!attribute [rw] page_token + # @return [::String] + # The page token: If the next_page_token from a previous response + # is provided, this request will send the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Filter the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Order results as specified in https://google.aip.dev/132. + class ListRolloutKindsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response structure for the ListRolloutKinds method. + # @!attribute [rw] rollout_kinds + # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] + # The resulting rollout kinds. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, the next page token can be provided to a subsequent + # ListRolloutKinds call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations that could not be reached. + class ListRolloutKindsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the GetRolloutKind method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + class GetRolloutKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the CreateRolloutKind method. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent of the rollout kind. + # @!attribute [rw] rollout_kind_id + # @return [::String] + # Required. The ID value for the new rollout kind. + # @!attribute [rw] rollout_kind + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # Required. The desired state for the rollout kind. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class CreateRolloutKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the UpdateRolloutKind method. + # @!attribute [rw] rollout_kind + # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] + # Required. The desired state for the rollout kind. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Field mask is used to specify the fields to be overwritten in the + # RolloutKind resource by the update. + # + # The fields specified in the update_mask are relative to the resource, not + # the full request. A field will be overwritten if it is in the mask. + # + # If the user does not provide a mask then all fields in the + # RolloutKind will be overwritten. + class UpdateRolloutKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request structure for the DeleteRolloutKind method. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the resource within a service. + # @!attribute [rw] etag + # @return [::String] + # The etag known to the client for the expected state of the rollout kind. + # This is used with state-changing methods to prevent accidental overwrites + # when multiple user agents might be acting in parallel on the same resource. + # + # An etag wildcard provide optimistic concurrency based on the expected + # existence of the rollout kind. The Any wildcard (`*`) requires that the + # resource must already exists, and the Not Any wildcard (`!*`) requires that + # it must not. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If "validate_only" is set to true, the service will try to validate + # that this request would succeed, but will not actually make changes. + # @!attribute [rw] request_id + # @return [::String] + # An optional 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 since 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). + class DeleteRolloutKindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile new file mode 100644 index 000000000000..90ed07065127 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-saas_platform-saas_service_mgmt-v1beta1", path: "../" +else + gem "google-cloud-saas_platform-saas_service_mgmt-v1beta1" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb new file mode 100644 index 000000000000..671b415bccaf --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_release call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_release. +# +def create_release + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new + + # Call the create_release method. + result = client.create_release request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb new file mode 100644 index 000000000000..02fe4e5f79a9 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_saas call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_saas. +# +def create_saas + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new + + # Call the create_saas method. + result = client.create_saas request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb new file mode 100644 index 000000000000..29430bc889e1 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_tenant call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_tenant. +# +def create_tenant + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new + + # Call the create_tenant method. + result = client.create_tenant request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb new file mode 100644 index 000000000000..8405bbd51ea4 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_unit call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit. +# +def create_unit + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new + + # Call the create_unit method. + result = client.create_unit request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb new file mode 100644 index 000000000000..7ac9b6a85477 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_unit_kind call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_kind. +# +def create_unit_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new + + # Call the create_unit_kind method. + result = client.create_unit_kind request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb new file mode 100644 index 000000000000..1a57192d0804 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_unit_operation call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_operation. +# +def create_unit_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new + + # Call the create_unit_operation method. + result = client.create_unit_operation request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb new file mode 100644 index 000000000000..4b085d53871c --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_release call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_release. +# +def delete_release + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new + + # Call the delete_release method. + result = client.delete_release request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb new file mode 100644 index 000000000000..287b20fdd8de --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_saas call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_saas. +# +def delete_saas + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new + + # Call the delete_saas method. + result = client.delete_saas request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb new file mode 100644 index 000000000000..ff3f88c333bb --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_tenant call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_tenant. +# +def delete_tenant + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new + + # Call the delete_tenant method. + result = client.delete_tenant request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb new file mode 100644 index 000000000000..f6f2d7f2d174 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_unit call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit. +# +def delete_unit + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new + + # Call the delete_unit method. + result = client.delete_unit request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb new file mode 100644 index 000000000000..464fd58d299d --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_unit_kind call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_kind. +# +def delete_unit_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new + + # Call the delete_unit_kind method. + result = client.delete_unit_kind request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb new file mode 100644 index 000000000000..3cebe280b187 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_unit_operation call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_operation. +# +def delete_unit_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new + + # Call the delete_unit_operation method. + result = client.delete_unit_operation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb new file mode 100644 index 000000000000..d5bc5e385302 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_release call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_release. +# +def get_release + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new + + # Call the get_release method. + result = client.get_release request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb new file mode 100644 index 000000000000..2f6921848e62 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_saas call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_saas. +# +def get_saas + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new + + # Call the get_saas method. + result = client.get_saas request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb new file mode 100644 index 000000000000..e60c8042ce13 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_tenant call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_tenant. +# +def get_tenant + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new + + # Call the get_tenant method. + result = client.get_tenant request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb new file mode 100644 index 000000000000..b539f8b644dc --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_unit call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit. +# +def get_unit + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new + + # Call the get_unit method. + result = client.get_unit request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb new file mode 100644 index 000000000000..82f5ce85888b --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_unit_kind call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_kind. +# +def get_unit_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new + + # Call the get_unit_kind method. + result = client.get_unit_kind request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb new file mode 100644 index 000000000000..6cfaedfe0ca0 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_unit_operation call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_operation. +# +def get_unit_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new + + # Call the get_unit_operation method. + result = client.get_unit_operation request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb new file mode 100644 index 000000000000..7e0d486189c4 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_releases call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_releases. +# +def list_releases + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new + + # Call the list_releases method. + result = client.list_releases request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb new file mode 100644 index 000000000000..e329ba8bf277 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_saas call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_saas. +# +def list_saas + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new + + # Call the list_saas method. + result = client.list_saas request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb new file mode 100644 index 000000000000..63aa78449af2 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_tenants call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_tenants. +# +def list_tenants + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new + + # Call the list_tenants method. + result = client.list_tenants request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb new file mode 100644 index 000000000000..853423937a44 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_unit_kinds call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_kinds. +# +def list_unit_kinds + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new + + # Call the list_unit_kinds method. + result = client.list_unit_kinds request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb new file mode 100644 index 000000000000..c1338c41f63b --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_unit_operations call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_operations. +# +def list_unit_operations + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new + + # Call the list_unit_operations method. + result = client.list_unit_operations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb new file mode 100644 index 000000000000..91dec6bd49e1 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_units call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_units. +# +def list_units + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new + + # Call the list_units method. + result = client.list_units request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb new file mode 100644 index 000000000000..9de4514884f5 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_release call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_release. +# +def update_release + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new + + # Call the update_release method. + result = client.update_release request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb new file mode 100644 index 000000000000..5701d900ad11 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_saas call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_saas. +# +def update_saas + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new + + # Call the update_saas method. + result = client.update_saas request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb new file mode 100644 index 000000000000..5a9daf469f69 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_tenant call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_tenant. +# +def update_tenant + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new + + # Call the update_tenant method. + result = client.update_tenant request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb new file mode 100644 index 000000000000..f0ea79580356 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_unit call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit. +# +def update_unit + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new + + # Call the update_unit method. + result = client.update_unit request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb new file mode 100644 index 000000000000..c5f670d063c8 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_unit_kind call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_kind. +# +def update_unit_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new + + # Call the update_unit_kind method. + result = client.update_unit_kind request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb new file mode 100644 index 000000000000..45e4839655fe --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_unit_operation call in the SaasDeployments service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_operation. +# +def update_unit_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new + + # Call the update_unit_operation method. + result = client.update_unit_operation request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb new file mode 100644 index 000000000000..ca268c23b8e5 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_rollout call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout. +# +def create_rollout + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new + + # Call the create_rollout method. + result = client.create_rollout request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb new file mode 100644 index 000000000000..b2eff129e8aa --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the create_rollout_kind call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout_kind. +# +def create_rollout_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new + + # Call the create_rollout_kind method. + result = client.create_rollout_kind request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb new file mode 100644 index 000000000000..3635f31da3c8 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_rollout call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout. +# +def delete_rollout + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new + + # Call the delete_rollout method. + result = client.delete_rollout request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb new file mode 100644 index 000000000000..85b390cdb835 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the delete_rollout_kind call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout_kind. +# +def delete_rollout_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new + + # Call the delete_rollout_kind method. + result = client.delete_rollout_kind request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb new file mode 100644 index 000000000000..a753725a1396 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_rollout call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout. +# +def get_rollout + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new + + # Call the get_rollout method. + result = client.get_rollout request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb new file mode 100644 index 000000000000..4bfbd24ee493 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the get_rollout_kind call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout_kind. +# +def get_rollout_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new + + # Call the get_rollout_kind method. + result = client.get_rollout_kind request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb new file mode 100644 index 000000000000..ae58381bb397 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_rollout_kinds call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollout_kinds. +# +def list_rollout_kinds + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new + + # Call the list_rollout_kinds method. + result = client.list_rollout_kinds request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb new file mode 100644 index 000000000000..4a9d1ea856ee --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the list_rollouts call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollouts. +# +def list_rollouts + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new + + # Call the list_rollouts method. + result = client.list_rollouts request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + p item + end +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb new file mode 100644 index 000000000000..fdc3c34c42ae --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_rollout call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout. +# +def update_rollout + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new + + # Call the update_rollout method. + result = client.update_rollout request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb new file mode 100644 index 000000000000..1343b74ff25c --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync] +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" + +## +# Snippet for the update_rollout_kind call in the SaasRollouts service +# +# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout_kind. +# +def update_rollout_kind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new + + # Call the update_rollout_kind method. + result = client.update_rollout_kind request + + # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. + p result +end +# [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json new file mode 100644 index 000000000000..212cb6c72d68 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json @@ -0,0 +1,1615 @@ +{ + "client_library": { + "name": "google-cloud-saas_platform-saas_service_mgmt-v1beta1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.cloud.saasplatform.saasservicemgmt.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync", + "title": "Snippet for the list_saas call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_saas.", + "file": "saas_deployments/list_saas.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_saas", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_saas", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "ListSaas", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListSaas", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync", + "title": "Snippet for the get_saas call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_saas.", + "file": "saas_deployments/get_saas.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_saas", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_saas", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "GetSaas", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetSaas", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync", + "title": "Snippet for the create_saas call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_saas.", + "file": "saas_deployments/create_saas.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_saas", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_saas", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "CreateSaas", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateSaas", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync", + "title": "Snippet for the update_saas call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_saas.", + "file": "saas_deployments/update_saas.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_saas", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_saas", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "UpdateSaas", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateSaas", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync", + "title": "Snippet for the delete_saas call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_saas.", + "file": "saas_deployments/delete_saas.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_saas", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_saas", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "DeleteSaas", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteSaas", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync", + "title": "Snippet for the list_tenants call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_tenants.", + "file": "saas_deployments/list_tenants.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_tenants", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_tenants", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "ListTenants", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListTenants", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync", + "title": "Snippet for the get_tenant call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_tenant.", + "file": "saas_deployments/get_tenant.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_tenant", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_tenant", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "GetTenant", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetTenant", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync", + "title": "Snippet for the create_tenant call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_tenant.", + "file": "saas_deployments/create_tenant.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_tenant", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_tenant", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "CreateTenant", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateTenant", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync", + "title": "Snippet for the update_tenant call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_tenant.", + "file": "saas_deployments/update_tenant.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_tenant", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_tenant", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "UpdateTenant", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateTenant", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync", + "title": "Snippet for the delete_tenant call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_tenant.", + "file": "saas_deployments/delete_tenant.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_tenant", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_tenant", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "DeleteTenant", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteTenant", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync", + "title": "Snippet for the list_unit_kinds call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_kinds.", + "file": "saas_deployments/list_unit_kinds.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_unit_kinds", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_kinds", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "ListUnitKinds", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitKinds", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync", + "title": "Snippet for the get_unit_kind call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_kind.", + "file": "saas_deployments/get_unit_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_unit_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "GetUnitKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitKind", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync", + "title": "Snippet for the create_unit_kind call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_kind.", + "file": "saas_deployments/create_unit_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_unit_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "CreateUnitKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitKind", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync", + "title": "Snippet for the update_unit_kind call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_kind.", + "file": "saas_deployments/update_unit_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_unit_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "UpdateUnitKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitKind", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync", + "title": "Snippet for the delete_unit_kind call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_kind.", + "file": "saas_deployments/delete_unit_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_unit_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "DeleteUnitKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitKind", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync", + "title": "Snippet for the list_units call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_units.", + "file": "saas_deployments/list_units.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_units", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_units", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "ListUnits", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnits", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync", + "title": "Snippet for the get_unit call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit.", + "file": "saas_deployments/get_unit.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_unit", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "GetUnit", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnit", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync", + "title": "Snippet for the create_unit call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit.", + "file": "saas_deployments/create_unit.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_unit", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "CreateUnit", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnit", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync", + "title": "Snippet for the update_unit call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit.", + "file": "saas_deployments/update_unit.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_unit", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "UpdateUnit", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnit", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync", + "title": "Snippet for the delete_unit call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit.", + "file": "saas_deployments/delete_unit.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_unit", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "DeleteUnit", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnit", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync", + "title": "Snippet for the list_unit_operations call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_operations.", + "file": "saas_deployments/list_unit_operations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_unit_operations", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_operations", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "ListUnitOperations", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitOperations", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync", + "title": "Snippet for the get_unit_operation call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_operation.", + "file": "saas_deployments/get_unit_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_unit_operation", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "GetUnitOperation", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitOperation", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync", + "title": "Snippet for the create_unit_operation call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_operation.", + "file": "saas_deployments/create_unit_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_unit_operation", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "CreateUnitOperation", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitOperation", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync", + "title": "Snippet for the update_unit_operation call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_operation.", + "file": "saas_deployments/update_unit_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_unit_operation", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "UpdateUnitOperation", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitOperation", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync", + "title": "Snippet for the delete_unit_operation call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_operation.", + "file": "saas_deployments/delete_unit_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_unit_operation", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "DeleteUnitOperation", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitOperation", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync", + "title": "Snippet for the list_releases call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_releases.", + "file": "saas_deployments/list_releases.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_releases", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_releases", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "ListReleases", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListReleases", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync", + "title": "Snippet for the get_release call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_release.", + "file": "saas_deployments/get_release.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_release", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_release", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "GetRelease", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetRelease", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync", + "title": "Snippet for the create_release call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_release.", + "file": "saas_deployments/create_release.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_release", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_release", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "CreateRelease", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateRelease", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync", + "title": "Snippet for the update_release call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_release.", + "file": "saas_deployments/update_release.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_release", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_release", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "UpdateRelease", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateRelease", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync", + "title": "Snippet for the delete_release call in the SaasDeployments service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_release.", + "file": "saas_deployments/delete_release.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_release", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_release", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasDeployments::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" + }, + "method": { + "short_name": "DeleteRelease", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteRelease", + "service": { + "short_name": "SaasDeployments", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync", + "title": "Snippet for the list_rollouts call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollouts.", + "file": "saas_rollouts/list_rollouts.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_rollouts", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollouts", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "ListRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRollouts", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync", + "title": "Snippet for the get_rollout call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout.", + "file": "saas_rollouts/get_rollout.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_rollout", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "GetRollout", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRollout", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync", + "title": "Snippet for the create_rollout call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout.", + "file": "saas_rollouts/create_rollout.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_rollout", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "CreateRollout", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRollout", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync", + "title": "Snippet for the update_rollout call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout.", + "file": "saas_rollouts/update_rollout.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_rollout", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "UpdateRollout", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRollout", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync", + "title": "Snippet for the delete_rollout call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout.", + "file": "saas_rollouts/delete_rollout.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_rollout", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "DeleteRollout", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRollout", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync", + "title": "Snippet for the list_rollout_kinds call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollout_kinds.", + "file": "saas_rollouts/list_rollout_kinds.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_rollout_kinds", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollout_kinds", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "ListRolloutKinds", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRolloutKinds", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync", + "title": "Snippet for the get_rollout_kind call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout_kind.", + "file": "saas_rollouts/get_rollout_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_rollout_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "GetRolloutKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRolloutKind", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync", + "title": "Snippet for the create_rollout_kind call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout_kind.", + "file": "saas_rollouts/create_rollout_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_rollout_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "CreateRolloutKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRolloutKind", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync", + "title": "Snippet for the update_rollout_kind call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout_kind.", + "file": "saas_rollouts/update_rollout_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_rollout_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "UpdateRolloutKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRolloutKind", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync", + "title": "Snippet for the delete_rollout_kind call in the SaasRollouts service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout_kind.", + "file": "saas_rollouts/delete_rollout_kind.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_rollout_kind", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout_kind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "SaasRollouts::Client", + "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" + }, + "method": { + "short_name": "DeleteRolloutKind", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRolloutKind", + "service": { + "short_name": "SaasRollouts", + "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb new file mode 100644 index 000000000000..005ecd987b9d --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb @@ -0,0 +1,139 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" + +class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_release_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.release_path project: "value0", location: "value1", release: "value2" + assert_equal "projects/value0/locations/value1/releases/value2", path + end + end + + def test_rollout_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.rollout_path project: "value0", location: "value1", rollout_id: "value2" + assert_equal "projects/value0/locations/value1/rollouts/value2", path + end + end + + def test_saas_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.saas_path project: "value0", location: "value1", saas: "value2" + assert_equal "projects/value0/locations/value1/saas/value2", path + end + end + + def test_tenant_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.tenant_path project: "value0", location: "value1", tenant: "value2" + assert_equal "projects/value0/locations/value1/tenants/value2", path + end + end + + def test_unit_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.unit_path project: "value0", location: "value1", unit: "value2" + assert_equal "projects/value0/locations/value1/units/value2", path + end + end + + def test_unit_kind_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.unit_kind_path project: "value0", location: "value1", unit_kind: "value2" + assert_equal "projects/value0/locations/value1/unitKinds/value2", path + end + end + + def test_unit_operation_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.unit_operation_path project: "value0", location: "value1", unit_operation: "value2" + assert_equal "projects/value0/locations/value1/unitOperations/value2", path + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb new file mode 100644 index 000000000000..f3cf27a8a1e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb @@ -0,0 +1,1803 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" + + +class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_saas + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_saas_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_saas parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_saas_client_stub.call_count + end + end + end + + def test_get_saas + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_saas_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_saas({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_saas name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_saas({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_saas_client_stub.call_count + end + end + end + + def test_create_saas + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + saas_id = "hello world" + saas = {} + validate_only = true + request_id = "hello world" + + create_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_saas_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_saas parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_saas_client_stub.call_count + end + end + end + + def test_update_saas + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + saas = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_saas_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_saas saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_saas_client_stub.call_count + end + end + end + + def test_delete_saas + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_saas_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_saas name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_saas_client_stub.call_count + end + end + end + + def test_list_tenants + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_tenants_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_tenants_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_tenants_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_tenants parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_tenants ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_tenants(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_tenants_client_stub.call_count + end + end + end + + def test_get_tenant + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_tenant_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_tenant({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_tenant name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_tenant({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_tenant_client_stub.call_count + end + end + end + + def test_create_tenant + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + tenant_id = "hello world" + tenant = {} + validate_only = true + request_id = "hello world" + + create_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_tenant_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_tenant parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_tenant_client_stub.call_count + end + end + end + + def test_update_tenant + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + tenant = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_tenant_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_tenant tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_tenant_client_stub.call_count + end + end + end + + def test_delete_tenant + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_tenant_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_tenant name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_tenant_client_stub.call_count + end + end + end + + def test_list_unit_kinds + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_unit_kinds_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_unit_kinds_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_unit_kinds_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_unit_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_unit_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_unit_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_unit_kinds_client_stub.call_count + end + end + end + + def test_get_unit_kind + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_unit_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_unit_kind({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_unit_kind name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_unit_kind({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_unit_kind_client_stub.call_count + end + end + end + + def test_create_unit_kind + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + unit_kind_id = "hello world" + unit_kind = {} + validate_only = true + request_id = "hello world" + + create_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_unit_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_unit_kind parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_unit_kind_client_stub.call_count + end + end + end + + def test_update_unit_kind + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + unit_kind = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_unit_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_unit_kind unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_unit_kind_client_stub.call_count + end + end + end + + def test_delete_unit_kind + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_unit_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_unit_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_unit_kind_client_stub.call_count + end + end + end + + def test_list_units + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_units_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_units_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_units_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_units parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_units ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_units(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_units_client_stub.call_count + end + end + end + + def test_get_unit + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_unit_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_unit({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_unit name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_unit({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_unit_client_stub.call_count + end + end + end + + def test_create_unit + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + unit_id = "hello world" + unit = {} + validate_only = true + request_id = "hello world" + + create_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_unit_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_unit parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_unit_client_stub.call_count + end + end + end + + def test_update_unit + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + unit = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_unit_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_unit unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_unit_client_stub.call_count + end + end + end + + def test_delete_unit + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_unit_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_unit name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_unit_client_stub.call_count + end + end + end + + def test_list_unit_operations + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_unit_operations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_unit_operations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_unit_operations_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_unit_operations parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_unit_operations ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_unit_operations(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_unit_operations_client_stub.call_count + end + end + end + + def test_get_unit_operation + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_unit_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_unit_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_unit_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_unit_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_unit_operation_client_stub.call_count + end + end + end + + def test_create_unit_operation + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + unit_operation_id = "hello world" + unit_operation = {} + validate_only = true + request_id = "hello world" + + create_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_unit_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_unit_operation parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_unit_operation_client_stub.call_count + end + end + end + + def test_update_unit_operation + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + unit_operation = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_unit_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_unit_operation unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_unit_operation_client_stub.call_count + end + end + end + + def test_delete_unit_operation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_unit_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_unit_operation name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_unit_operation_client_stub.call_count + end + end + end + + def test_list_releases + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_releases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_releases_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_releases_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_releases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_releases ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_releases(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_releases_client_stub.call_count + end + end + end + + def test_get_release + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_release_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_release({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_release name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_release({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_release_client_stub.call_count + end + end + end + + def test_create_release + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_id = "hello world" + release = {} + validate_only = true + request_id = "hello world" + + create_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_release_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_release parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_release_client_stub.call_count + end + end + end + + def test_update_release + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + release = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_release_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_release release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_release_client_stub.call_count + end + end + end + + def test_delete_release + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_release_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_release name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_release_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb new file mode 100644 index 000000000000..17a118efd092 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb @@ -0,0 +1,2042 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" + +class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_saas + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_saas, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_saas parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_saas_client_stub.call_rpc_count + end + end + + def test_get_saas + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_saas, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_saas({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_saas name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_saas({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_saas_client_stub.call_rpc_count + end + end + + def test_create_saas + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + saas_id = "hello world" + saas = {} + validate_only = true + request_id = "hello world" + + create_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_saas, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["saas_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas), request["saas"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_saas parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_saas_client_stub.call_rpc_count + end + end + + def test_update_saas + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + saas = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_saas, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas), request["saas"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_saas saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_saas_client_stub.call_rpc_count + end + end + + def test_delete_saas + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_saas, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_saas_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_saas name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_saas_client_stub.call_rpc_count + end + end + + def test_list_tenants + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_tenants_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_tenants, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_tenants_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_tenants parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_tenants ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_tenants(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_tenants_client_stub.call_rpc_count + end + end + + def test_get_tenant + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_tenant, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_tenant({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_tenant name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_tenant({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_tenant_client_stub.call_rpc_count + end + end + + def test_create_tenant + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + tenant_id = "hello world" + tenant = {} + validate_only = true + request_id = "hello world" + + create_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_tenant, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["tenant_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant), request["tenant"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_tenant parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_tenant_client_stub.call_rpc_count + end + end + + def test_update_tenant + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + tenant = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_tenant, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant), request["tenant"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_tenant tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_tenant_client_stub.call_rpc_count + end + end + + def test_delete_tenant + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_tenant, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_tenant_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_tenant name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_tenant_client_stub.call_rpc_count + end + end + + def test_list_unit_kinds + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_unit_kinds_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_unit_kinds, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_unit_kinds_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_unit_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_unit_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_unit_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_unit_kinds_client_stub.call_rpc_count + end + end + + def test_get_unit_kind + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_unit_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_unit_kind({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_unit_kind name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_unit_kind({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_unit_kind_client_stub.call_rpc_count + end + end + + def test_create_unit_kind + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + unit_kind_id = "hello world" + unit_kind = {} + validate_only = true + request_id = "hello world" + + create_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_unit_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["unit_kind_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind), request["unit_kind"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_unit_kind parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_unit_kind_client_stub.call_rpc_count + end + end + + def test_update_unit_kind + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + unit_kind = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_unit_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind), request["unit_kind"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_unit_kind unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_unit_kind_client_stub.call_rpc_count + end + end + + def test_delete_unit_kind + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_unit_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_unit_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_unit_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_unit_kind_client_stub.call_rpc_count + end + end + + def test_list_units + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_units_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_units, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_units_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_units parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_units ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_units(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_units_client_stub.call_rpc_count + end + end + + def test_get_unit + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_unit, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_unit({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_unit name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_unit({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_unit_client_stub.call_rpc_count + end + end + + def test_create_unit + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + unit_id = "hello world" + unit = {} + validate_only = true + request_id = "hello world" + + create_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_unit, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["unit_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit), request["unit"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_unit parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_unit_client_stub.call_rpc_count + end + end + + def test_update_unit + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + unit = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_unit, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit), request["unit"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_unit unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_unit_client_stub.call_rpc_count + end + end + + def test_delete_unit + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_unit, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_unit_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_unit name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_unit_client_stub.call_rpc_count + end + end + + def test_list_unit_operations + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_unit_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_unit_operations, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_unit_operations_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_unit_operations parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_unit_operations ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_unit_operations(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_unit_operations_client_stub.call_rpc_count + end + end + + def test_get_unit_operation + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_unit_operation, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_unit_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_unit_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_unit_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_unit_operation_client_stub.call_rpc_count + end + end + + def test_create_unit_operation + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + unit_operation_id = "hello world" + unit_operation = {} + validate_only = true + request_id = "hello world" + + create_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_unit_operation, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["unit_operation_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation), request["unit_operation"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_unit_operation parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_unit_operation_client_stub.call_rpc_count + end + end + + def test_update_unit_operation + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + unit_operation = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_unit_operation, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation), request["unit_operation"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_unit_operation unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_unit_operation_client_stub.call_rpc_count + end + end + + def test_delete_unit_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_unit_operation, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_unit_operation_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_unit_operation name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_unit_operation_client_stub.call_rpc_count + end + end + + def test_list_releases + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_releases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_releases, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_releases_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_releases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_releases ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_releases(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_releases_client_stub.call_rpc_count + end + end + + def test_get_release + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_release, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_release({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_release name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_release({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_release_client_stub.call_rpc_count + end + end + + def test_create_release + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_id = "hello world" + release = {} + validate_only = true + request_id = "hello world" + + create_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_release, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["release_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release), request["release"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_release parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_release_client_stub.call_rpc_count + end + end + + def test_update_release + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + release = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_release, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release), request["release"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_release release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_release_client_stub.call_rpc_count + end + end + + def test_delete_release + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_release, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_release_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_release name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_release_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb new file mode 100644 index 000000000000..74ed06aa7ce4 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb @@ -0,0 +1,103 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" + +class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_release_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.release_path project: "value0", location: "value1", release: "value2" + assert_equal "projects/value0/locations/value1/releases/value2", path + end + end + + def test_rollout_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.rollout_path project: "value0", location: "value1", rollout_id: "value2" + assert_equal "projects/value0/locations/value1/rollouts/value2", path + end + end + + def test_rollout_kind_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.rollout_kind_path project: "value0", location: "value1", rollout_kind_id: "value2" + assert_equal "projects/value0/locations/value1/rolloutKinds/value2", path + end + end + + def test_unit_kind_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.unit_kind_path project: "value0", location: "value1", unit_kind: "value2" + assert_equal "projects/value0/locations/value1/unitKinds/value2", path + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb new file mode 100644 index 000000000000..74e871ac379c --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb @@ -0,0 +1,667 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" + + +class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_rollouts + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_rollouts_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_list_rollouts_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_rollouts_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_rollouts parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_rollouts ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_rollouts(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_rollouts_client_stub.call_count + end + end + end + + def test_get_rollout + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_get_rollout_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_rollout({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_rollout name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_rollout({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_rollout_client_stub.call_count + end + end + end + + def test_create_rollout + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + rollout_id = "hello world" + rollout = {} + validate_only = true + request_id = "hello world" + + create_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_create_rollout_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_rollout parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_rollout_client_stub.call_count + end + end + end + + def test_update_rollout + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + rollout = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_update_rollout_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_rollout rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_rollout_client_stub.call_count + end + end + end + + def test_delete_rollout + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_delete_rollout_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_rollout name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_rollout_client_stub.call_count + end + end + end + + def test_list_rollout_kinds + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_rollout_kinds_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_list_rollout_kinds_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_rollout_kinds_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_rollout_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_rollout_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_rollout_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_rollout_kinds_client_stub.call_count + end + end + end + + def test_get_rollout_kind + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_get_rollout_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_rollout_kind({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_rollout_kind name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_rollout_kind({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_rollout_kind_client_stub.call_count + end + end + end + + def test_create_rollout_kind + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + rollout_kind_id = "hello world" + rollout_kind = {} + validate_only = true + request_id = "hello world" + + create_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_create_rollout_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_rollout_kind parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_rollout_kind_client_stub.call_count + end + end + end + + def test_update_rollout_kind + # Create test objects. + client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + rollout_kind = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_update_rollout_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_rollout_kind rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_rollout_kind_client_stub.call_count + end + end + end + + def test_delete_rollout_kind + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_delete_rollout_kind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_rollout_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_rollout_kind_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb new file mode 100644 index 000000000000..eae3d040a59d --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb @@ -0,0 +1,750 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" +require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" + +class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_rollouts + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_rollouts_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_rollouts, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_rollouts_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_rollouts parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_rollouts ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_rollouts(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_rollouts_client_stub.call_rpc_count + end + end + + def test_get_rollout + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_rollout, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_rollout({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_rollout name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_rollout({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_rollout_client_stub.call_rpc_count + end + end + + def test_create_rollout + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + rollout_id = "hello world" + rollout = {} + validate_only = true + request_id = "hello world" + + create_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_rollout, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["rollout_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout), request["rollout"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_rollout parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_rollout_client_stub.call_rpc_count + end + end + + def test_update_rollout + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + rollout = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_rollout, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout), request["rollout"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_rollout rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_rollout_client_stub.call_rpc_count + end + end + + def test_delete_rollout + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_rollout, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_rollout_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_rollout name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_rollout_client_stub.call_rpc_count + end + end + + def test_list_rollout_kinds + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_rollout_kinds_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_rollout_kinds, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_rollout_kinds_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_rollout_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_rollout_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_rollout_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_rollout_kinds_client_stub.call_rpc_count + end + end + + def test_get_rollout_kind + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_rollout_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_rollout_kind({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_rollout_kind name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_rollout_kind({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_rollout_kind_client_stub.call_rpc_count + end + end + + def test_create_rollout_kind + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + rollout_kind_id = "hello world" + rollout_kind = {} + validate_only = true + request_id = "hello world" + + create_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_rollout_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["rollout_kind_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind), request["rollout_kind"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_rollout_kind parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_rollout_kind_client_stub.call_rpc_count + end + end + + def test_update_rollout_kind + # Create GRPC objects. + grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + rollout_kind = {} + validate_only = true + request_id = "hello world" + update_mask = {} + + update_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_rollout_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind), request["rollout_kind"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_rollout_kind rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_rollout_kind_client_stub.call_rpc_count + end + end + + def test_delete_rollout_kind + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + etag = "hello world" + validate_only = true + request_id = "hello world" + + delete_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_rollout_kind, name + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["etag"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_rollout_kind_client_stub do + # Create client + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_rollout_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_rollout_kind_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb new file mode 100644 index 000000000000..f0e715458fa2 --- /dev/null +++ b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/rg" + +require "grpc" + +require "ostruct" From fd84660705bd724151b8c5ece656288d4aa462cf Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 12 Feb 2026 19:09:49 +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 --- .../saasservicemgmt/v1beta1/common_pb.rb | 2 +- .../saasservicemgmt/v1beta1/common.rb | 6 + .../.gitignore | 22 - .../.repo-metadata.json | 17 - .../.rubocop.yml | 33 - .../.toys.rb | 28 - .../.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../CHANGELOG.md | 2 - .../Gemfile | 11 - .../LICENSE.md | 201 - .../README.md | 154 - .../Rakefile | 169 - .../gapic_metadata.json | 227 - ...platform-saas_service_mgmt-v1beta1.gemspec | 29 - ...saas_platform-saas_service_mgmt-v1beta1.rb | 21 - .../saas_service_mgmt/v1beta1.rb | 48 - .../v1beta1/bindings_override.rb | 77 - .../saas_service_mgmt/v1beta1/rest.rb | 41 - .../v1beta1/saas_deployments.rb | 57 - .../v1beta1/saas_deployments/client.rb | 3802 ----------------- .../v1beta1/saas_deployments/credentials.rb | 49 - .../v1beta1/saas_deployments/paths.rb | 185 - .../v1beta1/saas_deployments/rest.rb | 55 - .../v1beta1/saas_deployments/rest/client.rb | 3557 --------------- .../saas_deployments/rest/service_stub.rb | 1925 --------- .../v1beta1/saas_rollouts.rb | 57 - .../v1beta1/saas_rollouts/client.rb | 1534 ------- .../v1beta1/saas_rollouts/credentials.rb | 49 - .../v1beta1/saas_rollouts/paths.rb | 128 - .../v1beta1/saas_rollouts/rest.rb | 55 - .../v1beta1/saas_rollouts/rest/client.rb | 1429 ------- .../saas_rollouts/rest/service_stub.rb | 697 --- .../saas_service_mgmt/v1beta1/version.rb | 30 - .../saasservicemgmt/v1beta1/common_pb.rb | 58 - .../v1beta1/deployments_resources_pb.rb | 73 - .../v1beta1/deployments_service_pb.rb | 89 - .../deployments_service_services_pb.rb | 105 - .../v1beta1/rollouts_resources_pb.rb | 60 - .../v1beta1/rollouts_service_pb.rb | 65 - .../v1beta1/rollouts_service_services_pb.rb | 65 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 473 -- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/field_info.rb | 88 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../saasservicemgmt/v1beta1/common.rb | 237 - .../v1beta1/deployments_resources.rb | 837 ---- .../v1beta1/deployments_service.rb | 976 ----- .../v1beta1/rollouts_resources.rb | 389 -- .../v1beta1/rollouts_service.rb | 344 -- .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../snippets/Gemfile | 32 - .../saas_deployments/create_release.rb | 47 - .../snippets/saas_deployments/create_saas.rb | 47 - .../saas_deployments/create_tenant.rb | 47 - .../snippets/saas_deployments/create_unit.rb | 47 - .../saas_deployments/create_unit_kind.rb | 47 - .../saas_deployments/create_unit_operation.rb | 47 - .../saas_deployments/delete_release.rb | 47 - .../snippets/saas_deployments/delete_saas.rb | 47 - .../saas_deployments/delete_tenant.rb | 47 - .../snippets/saas_deployments/delete_unit.rb | 47 - .../saas_deployments/delete_unit_kind.rb | 47 - .../saas_deployments/delete_unit_operation.rb | 47 - .../snippets/saas_deployments/get_release.rb | 47 - .../snippets/saas_deployments/get_saas.rb | 47 - .../snippets/saas_deployments/get_tenant.rb | 47 - .../snippets/saas_deployments/get_unit.rb | 47 - .../saas_deployments/get_unit_kind.rb | 47 - .../saas_deployments/get_unit_operation.rb | 47 - .../saas_deployments/list_releases.rb | 51 - .../snippets/saas_deployments/list_saas.rb | 51 - .../snippets/saas_deployments/list_tenants.rb | 51 - .../saas_deployments/list_unit_kinds.rb | 51 - .../saas_deployments/list_unit_operations.rb | 51 - .../snippets/saas_deployments/list_units.rb | 51 - .../saas_deployments/update_release.rb | 47 - .../snippets/saas_deployments/update_saas.rb | 47 - .../saas_deployments/update_tenant.rb | 47 - .../snippets/saas_deployments/update_unit.rb | 47 - .../saas_deployments/update_unit_kind.rb | 47 - .../saas_deployments/update_unit_operation.rb | 47 - .../snippets/saas_rollouts/create_rollout.rb | 47 - .../saas_rollouts/create_rollout_kind.rb | 47 - .../snippets/saas_rollouts/delete_rollout.rb | 47 - .../saas_rollouts/delete_rollout_kind.rb | 47 - .../snippets/saas_rollouts/get_rollout.rb | 47 - .../saas_rollouts/get_rollout_kind.rb | 47 - .../saas_rollouts/list_rollout_kinds.rb | 51 - .../snippets/saas_rollouts/list_rollouts.rb | 51 - .../snippets/saas_rollouts/update_rollout.rb | 47 - .../saas_rollouts/update_rollout_kind.rb | 47 - ....saasplatform.saasservicemgmt.v1beta1.json | 1615 ------- .../v1beta1/saas_deployments_paths_test.rb | 139 - .../v1beta1/saas_deployments_rest_test.rb | 1803 -------- .../v1beta1/saas_deployments_test.rb | 2042 --------- .../v1beta1/saas_rollouts_paths_test.rb | 103 - .../v1beta1/saas_rollouts_rest_test.rb | 667 --- .../v1beta1/saas_rollouts_test.rb | 750 ---- .../test/helper.rb | 25 - 106 files changed, 7 insertions(+), 28791 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources_pb.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb delete mode 100644 owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb diff --git a/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb b/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb index a50b140d0058..450776ac3fe5 100644 --- a/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb +++ b/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb @@ -8,7 +8,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n>google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n\tBlueprint\x12\x17\n\x07package\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x13\n\x06\x65ngine\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xd5\x01\n\x0cUnitVariable\x12\x18\n\x08variable\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12Z\n\x04type\x18\x02 \x01(\x0e\x32\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.TypeB\x06\xe0\x41\x01\xe0\x41\x05\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xfb\x03\n\rUnitCondition\x12\\\n\x06status\x18\x01 \x01(\x0e\x32G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.StatusB\x03\xe0\x41\x02\x12X\n\x04type\x18\x02 \x01(\x0e\x32\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_READY\x10\x01\x12\x11\n\rTYPE_UPDATING\x10\x02\x12\x14\n\x10TYPE_PROVISIONED\x10\x03\x12\x18\n\x14TYPE_OPERATION_ERROR\x10\x04\"\x91\x04\n\x16UnitOperationCondition\x12\x65\n\x06status\x18\x01 \x01(\x0e\x32P.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.StatusB\x03\xe0\x41\x02\x12\x61\n\x04type\x18\x02 \x01(\x0e\x32N.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"j\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eTYPE_SCHEDULED\x10\x02\x12\x10\n\x0cTYPE_RUNNING\x10\x03\x12\x12\n\x0eTYPE_SUCCEEDED\x10\x04\x12\x12\n\x0eTYPE_CANCELLED\x10\x05\"3\n\tAggregate\x12\x12\n\x05group\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05\x63ount\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02*\x96\x01\n\x1aUnitOperationErrorCategory\x12-\n)UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED\x10\x00\x12\x12\n\x0eNOT_APPLICABLE\x10\x01\x12\t\n\x05\x46\x41TAL\x10\x02\x12\r\n\tRETRIABLE\x10\x03\x12\r\n\tIGNORABLE\x10\x04\x12\x0c\n\x08STANDARD\x10\x05\x42\xc7\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x0b\x43ommonProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" +descriptor_data = "\n>google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n\tBlueprint\x12\x17\n\x07package\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x13\n\x06\x65ngine\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xd5\x01\n\x0cUnitVariable\x12\x18\n\x08variable\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12Z\n\x04type\x18\x02 \x01(\x0e\x32\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.TypeB\x06\xe0\x41\x01\xe0\x41\x05\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xfb\x03\n\rUnitCondition\x12\\\n\x06status\x18\x01 \x01(\x0e\x32G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.StatusB\x03\xe0\x41\x02\x12X\n\x04type\x18\x02 \x01(\x0e\x32\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_READY\x10\x01\x12\x11\n\rTYPE_UPDATING\x10\x02\x12\x14\n\x10TYPE_PROVISIONED\x10\x03\x12\x18\n\x14TYPE_OPERATION_ERROR\x10\x04\"\xcc\x04\n\x16UnitOperationCondition\x12\x65\n\x06status\x18\x01 \x01(\x0e\x32P.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.StatusB\x03\xe0\x41\x02\x12\x61\n\x04type\x18\x02 \x01(\x0e\x32N.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"\xa4\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eTYPE_SCHEDULED\x10\x02\x12\x10\n\x0cTYPE_RUNNING\x10\x03\x12\x12\n\x0eTYPE_SUCCEEDED\x10\x04\x12\x12\n\x0eTYPE_CANCELLED\x10\x05\x12\x14\n\x10TYPE_APP_CREATED\x10\x06\x12\"\n\x1eTYPE_APP_COMPONENTS_REGISTERED\x10\x07\"3\n\tAggregate\x12\x12\n\x05group\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05\x63ount\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02*\x96\x01\n\x1aUnitOperationErrorCategory\x12-\n)UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED\x10\x00\x12\x12\n\x0eNOT_APPLICABLE\x10\x01\x12\t\n\x05\x46\x41TAL\x10\x02\x12\r\n\tRETRIABLE\x10\x03\x12\r\n\tIGNORABLE\x10\x04\x12\x0c\n\x08STANDARD\x10\x05\x42\xc7\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x0b\x43ommonProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb b/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb index ca2328b7271c..2d43b15d52a4 100644 --- a/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb +++ b/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb @@ -185,6 +185,12 @@ module Type # Condition type is cancelled. TYPE_CANCELLED = 5 + + # Indicates if AppHub app has been created. + TYPE_APP_CREATED = 6 + + # Indicates if services and workloads have been registered with AppHub. + TYPE_APP_COMPONENTS_REGISTERED = 7 end end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json deleted file mode 100644 index 97994f56b769..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_id": "saasservicemgmt.googleapis.com", - "api_shortname": "saasservicemgmt", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-saas_platform-saas_service_mgmt-v1beta1/latest", - "distribution_name": "google-cloud-saas_platform-saas_service_mgmt-v1beta1", - "is_cloud": true, - "language": "ruby", - "name": "saasservicemgmt", - "name_pretty": "SaaS Runtime V1BETA1 API", - "product_documentation": "https://cloud.google.com/saas-runtime/docs/overview", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "SaaS Runtime lets you store, host, manage, and monitor software as a service (SaaS) applications on Google Cloud. Note that google-cloud-saas_platform-saas_service_mgmt-v1beta1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-saas_platform-saas_service_mgmt instead. See the readme for more details.", - "ruby-cloud-product-url": "https://cloud.google.com/saas-runtime/docs/overview", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml deleted file mode 100644 index 981315800771..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb" diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts deleted file mode 100644 index 66921bbab993..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="SaaS Runtime V1BETA1 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md deleted file mode 100644 index 60e04154887d..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-saas_platform-saas_service_mgmt-v1beta1 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-saas_platform-saas_service_mgmt-v1beta1 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-saas_platform-saas_service_mgmt-v1beta1 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile deleted file mode 100644 index 6442df18fa2f..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Gemfile +++ /dev/null @@ -1,11 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.31.1" -gem "minitest", "~> 5.22" -gem "minitest-focus", "~> 1.4" -gem "minitest-rg", "~> 5.3" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md deleted file mode 100644 index 027ccdec4891..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the SaaS Runtime V1BETA1 API - -Model, deploy, and operate your SaaS at scale. - -SaaS Runtime lets you store, host, manage, and monitor software as a service (SaaS) applications on Google Cloud. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the SaaS Runtime V1BETA1 API. Most users should consider using -the main client gem, -[google-cloud-saas_platform-saas_service_mgmt](https://rubygems.org/gems/google-cloud-saas_platform-saas_service_mgmt). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-saas_platform-saas_service_mgmt-v1beta1 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/saasservicemgmt.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new -request = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new # (request fields as keyword arguments...) -response = client.list_saas request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-saas_platform-saas_service_mgmt-v1beta1/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/saas-runtime/docs/overview) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" -require "logger" - -client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-saas_platform-saas_service_mgmt`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-saas_platform-saas_service_mgmt-v1beta1`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-saas_platform-saas_service_mgmt`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-saas_platform-saas_service_mgmt-v1beta1`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile deleted file mode 100644 index 78bfe245658f..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-saas_platform-saas_service_mgmt-v1beta1 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["GOOGLE_CLOUD_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials" - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["GOOGLE_CLOUD_PROJECT"] = project - ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project - ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-saas_platform-saas_service_mgmt-v1beta1 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-saas_platform-saas_service_mgmt-v1beta1" - header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-saas_platform-saas_service_mgmt-v1beta1 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json deleted file mode 100644 index be051f6cea19..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/gapic_metadata.json +++ /dev/null @@ -1,227 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.cloud.saasplatform.saasservicemgmt.v1beta1", - "libraryPackage": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1", - "services": { - "SaasDeployments": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client", - "rpcs": { - "ListSaas": { - "methods": [ - "list_saas" - ] - }, - "GetSaas": { - "methods": [ - "get_saas" - ] - }, - "CreateSaas": { - "methods": [ - "create_saas" - ] - }, - "UpdateSaas": { - "methods": [ - "update_saas" - ] - }, - "DeleteSaas": { - "methods": [ - "delete_saas" - ] - }, - "ListTenants": { - "methods": [ - "list_tenants" - ] - }, - "GetTenant": { - "methods": [ - "get_tenant" - ] - }, - "CreateTenant": { - "methods": [ - "create_tenant" - ] - }, - "UpdateTenant": { - "methods": [ - "update_tenant" - ] - }, - "DeleteTenant": { - "methods": [ - "delete_tenant" - ] - }, - "ListUnitKinds": { - "methods": [ - "list_unit_kinds" - ] - }, - "GetUnitKind": { - "methods": [ - "get_unit_kind" - ] - }, - "CreateUnitKind": { - "methods": [ - "create_unit_kind" - ] - }, - "UpdateUnitKind": { - "methods": [ - "update_unit_kind" - ] - }, - "DeleteUnitKind": { - "methods": [ - "delete_unit_kind" - ] - }, - "ListUnits": { - "methods": [ - "list_units" - ] - }, - "GetUnit": { - "methods": [ - "get_unit" - ] - }, - "CreateUnit": { - "methods": [ - "create_unit" - ] - }, - "UpdateUnit": { - "methods": [ - "update_unit" - ] - }, - "DeleteUnit": { - "methods": [ - "delete_unit" - ] - }, - "ListUnitOperations": { - "methods": [ - "list_unit_operations" - ] - }, - "GetUnitOperation": { - "methods": [ - "get_unit_operation" - ] - }, - "CreateUnitOperation": { - "methods": [ - "create_unit_operation" - ] - }, - "UpdateUnitOperation": { - "methods": [ - "update_unit_operation" - ] - }, - "DeleteUnitOperation": { - "methods": [ - "delete_unit_operation" - ] - }, - "ListReleases": { - "methods": [ - "list_releases" - ] - }, - "GetRelease": { - "methods": [ - "get_release" - ] - }, - "CreateRelease": { - "methods": [ - "create_release" - ] - }, - "UpdateRelease": { - "methods": [ - "update_release" - ] - }, - "DeleteRelease": { - "methods": [ - "delete_release" - ] - } - } - } - } - }, - "SaasRollouts": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client", - "rpcs": { - "ListRollouts": { - "methods": [ - "list_rollouts" - ] - }, - "GetRollout": { - "methods": [ - "get_rollout" - ] - }, - "CreateRollout": { - "methods": [ - "create_rollout" - ] - }, - "UpdateRollout": { - "methods": [ - "update_rollout" - ] - }, - "DeleteRollout": { - "methods": [ - "delete_rollout" - ] - }, - "ListRolloutKinds": { - "methods": [ - "list_rollout_kinds" - ] - }, - "GetRolloutKind": { - "methods": [ - "get_rollout_kind" - ] - }, - "CreateRolloutKind": { - "methods": [ - "create_rollout_kind" - ] - }, - "UpdateRolloutKind": { - "methods": [ - "update_rollout_kind" - ] - }, - "DeleteRolloutKind": { - "methods": [ - "delete_rollout_kind" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec deleted file mode 100644 index 47e32029da1c..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/google-cloud-saas_platform-saas_service_mgmt-v1beta1.gemspec +++ /dev/null @@ -1,29 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-saas_platform-saas_service_mgmt-v1beta1" - gem.version = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "SaaS Runtime lets you store, host, manage, and monitor software as a service (SaaS) applications on Google Cloud. Note that google-cloud-saas_platform-saas_service_mgmt-v1beta1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-saas_platform-saas_service_mgmt instead. See the readme for more details." - gem.summary = "Model, deploy, and operate your SaaS at scale." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.1" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "google-cloud-location", "~> 1.0" -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb deleted file mode 100644 index 80bcd766d674..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb deleted file mode 100644 index 791947b8231a..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - module V1beta1 - end - end - end - end -end - -helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb deleted file mode 100644 index 04229d9920ee..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb +++ /dev/null @@ -1,77 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - ## - # @example Loading just the REST part of this package, including all its services, and instantiating a REST client - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - module V1beta1 - ## - # @private - # Initialize the mixin bindings configuration - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - - default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config - default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1beta1/{name}/locations", - matches: [ - ["name", %r{^projects/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config - end - yield @configure if block_given? - @configure - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb deleted file mode 100644 index f8c683743050..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb +++ /dev/null @@ -1,41 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - module V1beta1 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb deleted file mode 100644 index 11bbdfccaec4..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - ## - # Manages the deployment of SaaS services. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - module SaasDeployments - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "saas_deployments", "helpers.rb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb deleted file mode 100644 index 328a3619f2ee..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb +++ /dev/null @@ -1,3802 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" -require "google/cloud/location" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasDeployments - ## - # Client for the SaasDeployments service. - # - # Manages the deployment of SaaS services. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :saas_deployments_stub - - ## - # Configure the SaasDeployments Client class. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SaasDeployments clients - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.list_saas.timeout = 80.0 - default_config.rpcs.list_saas.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_saas.timeout = 30.0 - default_config.rpcs.get_saas.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_saas.timeout = 30.0 - - default_config.rpcs.update_saas.timeout = 30.0 - - default_config.rpcs.delete_saas.timeout = 30.0 - default_config.rpcs.delete_saas.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_tenants.timeout = 80.0 - default_config.rpcs.list_tenants.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_tenant.timeout = 30.0 - default_config.rpcs.get_tenant.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_tenant.timeout = 30.0 - - default_config.rpcs.update_tenant.timeout = 30.0 - - default_config.rpcs.delete_tenant.timeout = 30.0 - default_config.rpcs.delete_tenant.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_unit_kinds.timeout = 80.0 - default_config.rpcs.list_unit_kinds.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_unit_kind.timeout = 30.0 - default_config.rpcs.get_unit_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_unit_kind.timeout = 30.0 - - default_config.rpcs.update_unit_kind.timeout = 80.0 - - default_config.rpcs.delete_unit_kind.timeout = 80.0 - default_config.rpcs.delete_unit_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_units.timeout = 80.0 - default_config.rpcs.list_units.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_unit.timeout = 30.0 - default_config.rpcs.get_unit.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_unit.timeout = 30.0 - - default_config.rpcs.update_unit.timeout = 30.0 - - default_config.rpcs.delete_unit.timeout = 30.0 - default_config.rpcs.delete_unit.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_unit_operations.timeout = 80.0 - default_config.rpcs.list_unit_operations.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_unit_operation.timeout = 30.0 - default_config.rpcs.get_unit_operation.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_unit_operation.timeout = 30.0 - - default_config.rpcs.update_unit_operation.timeout = 30.0 - - default_config.rpcs.delete_unit_operation.timeout = 30.0 - default_config.rpcs.delete_unit_operation.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_releases.timeout = 80.0 - default_config.rpcs.list_releases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_release.timeout = 30.0 - default_config.rpcs.get_release.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_release.timeout = 30.0 - - default_config.rpcs.update_release.timeout = 30.0 - - default_config.rpcs.delete_release.timeout = 30.0 - default_config.rpcs.delete_release.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SaasDeployments Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @saas_deployments_stub.universe_domain - end - - ## - # Create a new SaasDeployments client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SaasDeployments client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @saas_deployments_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @saas_deployments_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @saas_deployments_stub.endpoint - config.universe_domain = @saas_deployments_stub.universe_domain - config.logger = @saas_deployments_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Client] - # - attr_reader :location_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @saas_deployments_stub.logger - end - - # Service calls - - ## - # Retrieve a collection of saas. - # - # @overload list_saas(request, options = nil) - # Pass arguments to `list_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_saas(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the saas. - # @param page_size [::Integer] - # The maximum number of saas to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new - # - # # Call the list_saas method. - # result = client.list_saas request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p item - # end - # - def list_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_saas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :list_saas, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_saas, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single saas. - # - # @overload get_saas(request, options = nil) - # Pass arguments to `get_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_saas(name: nil) - # Pass arguments to `get_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new - # - # # Call the get_saas method. - # result = client.get_saas request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p result - # - def get_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_saas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :get_saas, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new saas. - # - # @overload create_saas(request, options = nil) - # Pass arguments to `create_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_saas(parent: nil, saas_id: nil, saas: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the saas. - # @param saas_id [::String] - # Required. The ID value for the new saas. - # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] - # Required. The desired state for the saas. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new - # - # # Call the create_saas method. - # result = client.create_saas request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p result - # - def create_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_saas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :create_saas, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single saas. - # - # @overload update_saas(request, options = nil) - # Pass arguments to `update_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_saas(saas: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] - # Required. The desired state for the saas. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Saas resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Saas will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new - # - # # Call the update_saas method. - # result = client.update_saas request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p result - # - def update_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.saas&.name - header_params["saas.name"] = request.saas.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_saas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :update_saas, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single saas. - # - # @overload delete_saas(request, options = nil) - # Pass arguments to `delete_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_saas(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the saas. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the saas. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new - # - # # Call the delete_saas method. - # result = client.delete_saas request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_saas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :delete_saas, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of tenants. - # - # @overload list_tenants(request, options = nil) - # Pass arguments to `list_tenants` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_tenants(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_tenants` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the tenant. - # @param page_size [::Integer] - # The maximum number of tenants to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new - # - # # Call the list_tenants method. - # result = client.list_tenants request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p item - # end - # - def list_tenants request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_tenants.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_tenants.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_tenants.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :list_tenants, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_tenants, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single tenant. - # - # @overload get_tenant(request, options = nil) - # Pass arguments to `get_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_tenant(name: nil) - # Pass arguments to `get_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new - # - # # Call the get_tenant method. - # result = client.get_tenant request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p result - # - def get_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_tenant.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :get_tenant, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new tenant. - # - # @overload create_tenant(request, options = nil) - # Pass arguments to `create_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_tenant(parent: nil, tenant_id: nil, tenant: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the tenant. - # @param tenant_id [::String] - # Required. The ID value for the new tenant. - # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] - # Required. The desired state for the tenant. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new - # - # # Call the create_tenant method. - # result = client.create_tenant request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p result - # - def create_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_tenant.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :create_tenant, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single tenant. - # - # @overload update_tenant(request, options = nil) - # Pass arguments to `update_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_tenant(tenant: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] - # Required. The desired state for the tenant. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Tenant resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Tenant will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new - # - # # Call the update_tenant method. - # result = client.update_tenant request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p result - # - def update_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.tenant&.name - header_params["tenant.name"] = request.tenant.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_tenant.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :update_tenant, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single tenant. - # - # @overload delete_tenant(request, options = nil) - # Pass arguments to `delete_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_tenant(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the tenant. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the tenant. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new - # - # # Call the delete_tenant method. - # result = client.delete_tenant request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :delete_tenant, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of unit kinds. - # - # @overload list_unit_kinds(request, options = nil) - # Pass arguments to `list_unit_kinds` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_unit_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_unit_kinds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit kind. - # @param page_size [::Integer] - # The maximum number of unit kinds to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new - # - # # Call the list_unit_kinds method. - # result = client.list_unit_kinds request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p item - # end - # - def list_unit_kinds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_unit_kinds.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_unit_kinds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_unit_kinds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :list_unit_kinds, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_unit_kinds, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single unit kind. - # - # @overload get_unit_kind(request, options = nil) - # Pass arguments to `get_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_unit_kind(name: nil) - # Pass arguments to `get_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new - # - # # Call the get_unit_kind method. - # result = client.get_unit_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p result - # - def get_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_unit_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :get_unit_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new unit kind. - # - # @overload create_unit_kind(request, options = nil) - # Pass arguments to `create_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_unit_kind(parent: nil, unit_kind_id: nil, unit_kind: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit kind. - # @param unit_kind_id [::String] - # Required. The ID value for the new unit kind. - # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] - # Required. The desired state for the unit kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new - # - # # Call the create_unit_kind method. - # result = client.create_unit_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p result - # - def create_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_unit_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :create_unit_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single unit kind. - # - # @overload update_unit_kind(request, options = nil) - # Pass arguments to `update_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_unit_kind(unit_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] - # Required. The desired state for the unit kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # UnitKind resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # UnitKind will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new - # - # # Call the update_unit_kind method. - # result = client.update_unit_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p result - # - def update_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.unit_kind&.name - header_params["unit_kind.name"] = request.unit_kind.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_unit_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :update_unit_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single unit kind. - # - # @overload delete_unit_kind(request, options = nil) - # Pass arguments to `delete_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_unit_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the unit kind. This - # is used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit kind. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new - # - # # Call the delete_unit_kind method. - # result = client.delete_unit_kind request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_unit_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :delete_unit_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of units. - # - # @overload list_units(request, options = nil) - # Pass arguments to `list_units` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_units(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_units` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit. - # @param page_size [::Integer] - # The maximum number of units to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new - # - # # Call the list_units method. - # result = client.list_units request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p item - # end - # - def list_units request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_units.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_units.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_units.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :list_units, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_units, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single unit. - # - # @overload get_unit(request, options = nil) - # Pass arguments to `get_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_unit(name: nil) - # Pass arguments to `get_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new - # - # # Call the get_unit method. - # result = client.get_unit request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p result - # - def get_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_unit.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :get_unit, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new unit. - # - # @overload create_unit(request, options = nil) - # Pass arguments to `create_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_unit(parent: nil, unit_id: nil, unit: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit. - # @param unit_id [::String] - # Required. The ID value for the new unit. - # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] - # Required. The desired state for the unit. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new - # - # # Call the create_unit method. - # result = client.create_unit request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p result - # - def create_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_unit.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :create_unit, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single unit. - # - # @overload update_unit(request, options = nil) - # Pass arguments to `update_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_unit(unit: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] - # Required. The desired state for the unit. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Unit resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Unit will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new - # - # # Call the update_unit method. - # result = client.update_unit request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p result - # - def update_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.unit&.name - header_params["unit.name"] = request.unit.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_unit.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :update_unit, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single unit. - # - # @overload delete_unit(request, options = nil) - # Pass arguments to `delete_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_unit(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the unit. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new - # - # # Call the delete_unit method. - # result = client.delete_unit request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_unit.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :delete_unit, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of unit operations. - # - # @overload list_unit_operations(request, options = nil) - # Pass arguments to `list_unit_operations` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_unit_operations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_unit_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit operation. - # @param page_size [::Integer] - # The maximum number of unit operations to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new - # - # # Call the list_unit_operations method. - # result = client.list_unit_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p item - # end - # - def list_unit_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_unit_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_unit_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_unit_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :list_unit_operations, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_unit_operations, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single unit operation. - # - # @overload get_unit_operation(request, options = nil) - # Pass arguments to `get_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_unit_operation(name: nil) - # Pass arguments to `get_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new - # - # # Call the get_unit_operation method. - # result = client.get_unit_operation request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p result - # - def get_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_unit_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :get_unit_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new unit operation. - # - # @overload create_unit_operation(request, options = nil) - # Pass arguments to `create_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_unit_operation(parent: nil, unit_operation_id: nil, unit_operation: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit operation. - # @param unit_operation_id [::String] - # Required. The ID value for the new unit operation. - # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] - # Required. The desired state for the unit operation. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new - # - # # Call the create_unit_operation method. - # result = client.create_unit_operation request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p result - # - def create_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_unit_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :create_unit_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single unit operation. - # - # @overload update_unit_operation(request, options = nil) - # Pass arguments to `update_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_unit_operation(unit_operation: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] - # Required. The desired state for the unit operation. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # UnitOperation resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # UnitOperation will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new - # - # # Call the update_unit_operation method. - # result = client.update_unit_operation request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p result - # - def update_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.unit_operation&.name - header_params["unit_operation.name"] = request.unit_operation.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_unit_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :update_unit_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single unit operation. - # - # @overload delete_unit_operation(request, options = nil) - # Pass arguments to `delete_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_unit_operation(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the unit operation. - # This is used with state-changing methods to prevent accidental overwrites - # when multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit operation. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new - # - # # Call the delete_unit_operation method. - # result = client.delete_unit_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_unit_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :delete_unit_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of releases. - # - # @overload list_releases(request, options = nil) - # Pass arguments to `list_releases` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_releases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_releases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the release. - # @param page_size [::Integer] - # The maximum number of releases to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new - # - # # Call the list_releases method. - # result = client.list_releases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p item - # end - # - def list_releases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_releases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_releases.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_releases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :list_releases, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_deployments_stub, :list_releases, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single release. - # - # @overload get_release(request, options = nil) - # Pass arguments to `get_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_release(name: nil) - # Pass arguments to `get_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new - # - # # Call the get_release method. - # result = client.get_release request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p result - # - def get_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_release.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :get_release, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new release. - # - # @overload create_release(request, options = nil) - # Pass arguments to `create_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_release(parent: nil, release_id: nil, release: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the release. - # @param release_id [::String] - # Required. The ID value for the new release. - # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] - # Required. The desired state for the release. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new - # - # # Call the create_release method. - # result = client.create_release request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p result - # - def create_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_release.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :create_release, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single release. - # - # @overload update_release(request, options = nil) - # Pass arguments to `update_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_release(release: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] - # Required. The desired state for the release. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Release resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Release will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new - # - # # Call the update_release method. - # result = client.update_release request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p result - # - def update_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.release&.name - header_params["release.name"] = request.release.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_release.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :update_release, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single release. - # - # @overload delete_release(request, options = nil) - # Pass arguments to `delete_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_release(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the release. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the release. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new - # - # # Call the delete_release method. - # result = client.delete_release request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_release.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.call_rpc :delete_release, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the SaasDeployments API. - # - # This class represents the configuration for SaasDeployments, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_saas to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_saas.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_saas.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the SaasDeployments API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :list_saas - ## - # RPC-specific configuration for `get_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :get_saas - ## - # RPC-specific configuration for `create_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :create_saas - ## - # RPC-specific configuration for `update_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :update_saas - ## - # RPC-specific configuration for `delete_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_saas - ## - # RPC-specific configuration for `list_tenants` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tenants - ## - # RPC-specific configuration for `get_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :get_tenant - ## - # RPC-specific configuration for `create_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :create_tenant - ## - # RPC-specific configuration for `update_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :update_tenant - ## - # RPC-specific configuration for `delete_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_tenant - ## - # RPC-specific configuration for `list_unit_kinds` - # @return [::Gapic::Config::Method] - # - attr_reader :list_unit_kinds - ## - # RPC-specific configuration for `get_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :get_unit_kind - ## - # RPC-specific configuration for `create_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :create_unit_kind - ## - # RPC-specific configuration for `update_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :update_unit_kind - ## - # RPC-specific configuration for `delete_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_unit_kind - ## - # RPC-specific configuration for `list_units` - # @return [::Gapic::Config::Method] - # - attr_reader :list_units - ## - # RPC-specific configuration for `get_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :get_unit - ## - # RPC-specific configuration for `create_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :create_unit - ## - # RPC-specific configuration for `update_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :update_unit - ## - # RPC-specific configuration for `delete_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_unit - ## - # RPC-specific configuration for `list_unit_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_unit_operations - ## - # RPC-specific configuration for `get_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_unit_operation - ## - # RPC-specific configuration for `create_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_unit_operation - ## - # RPC-specific configuration for `update_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :update_unit_operation - ## - # RPC-specific configuration for `delete_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_unit_operation - ## - # RPC-specific configuration for `list_releases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_releases - ## - # RPC-specific configuration for `get_release` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release - ## - # RPC-specific configuration for `create_release` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release - ## - # RPC-specific configuration for `update_release` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release - ## - # RPC-specific configuration for `delete_release` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release - - # @private - def initialize parent_rpcs = nil - list_saas_config = parent_rpcs.list_saas if parent_rpcs.respond_to? :list_saas - @list_saas = ::Gapic::Config::Method.new list_saas_config - get_saas_config = parent_rpcs.get_saas if parent_rpcs.respond_to? :get_saas - @get_saas = ::Gapic::Config::Method.new get_saas_config - create_saas_config = parent_rpcs.create_saas if parent_rpcs.respond_to? :create_saas - @create_saas = ::Gapic::Config::Method.new create_saas_config - update_saas_config = parent_rpcs.update_saas if parent_rpcs.respond_to? :update_saas - @update_saas = ::Gapic::Config::Method.new update_saas_config - delete_saas_config = parent_rpcs.delete_saas if parent_rpcs.respond_to? :delete_saas - @delete_saas = ::Gapic::Config::Method.new delete_saas_config - list_tenants_config = parent_rpcs.list_tenants if parent_rpcs.respond_to? :list_tenants - @list_tenants = ::Gapic::Config::Method.new list_tenants_config - get_tenant_config = parent_rpcs.get_tenant if parent_rpcs.respond_to? :get_tenant - @get_tenant = ::Gapic::Config::Method.new get_tenant_config - create_tenant_config = parent_rpcs.create_tenant if parent_rpcs.respond_to? :create_tenant - @create_tenant = ::Gapic::Config::Method.new create_tenant_config - update_tenant_config = parent_rpcs.update_tenant if parent_rpcs.respond_to? :update_tenant - @update_tenant = ::Gapic::Config::Method.new update_tenant_config - delete_tenant_config = parent_rpcs.delete_tenant if parent_rpcs.respond_to? :delete_tenant - @delete_tenant = ::Gapic::Config::Method.new delete_tenant_config - list_unit_kinds_config = parent_rpcs.list_unit_kinds if parent_rpcs.respond_to? :list_unit_kinds - @list_unit_kinds = ::Gapic::Config::Method.new list_unit_kinds_config - get_unit_kind_config = parent_rpcs.get_unit_kind if parent_rpcs.respond_to? :get_unit_kind - @get_unit_kind = ::Gapic::Config::Method.new get_unit_kind_config - create_unit_kind_config = parent_rpcs.create_unit_kind if parent_rpcs.respond_to? :create_unit_kind - @create_unit_kind = ::Gapic::Config::Method.new create_unit_kind_config - update_unit_kind_config = parent_rpcs.update_unit_kind if parent_rpcs.respond_to? :update_unit_kind - @update_unit_kind = ::Gapic::Config::Method.new update_unit_kind_config - delete_unit_kind_config = parent_rpcs.delete_unit_kind if parent_rpcs.respond_to? :delete_unit_kind - @delete_unit_kind = ::Gapic::Config::Method.new delete_unit_kind_config - list_units_config = parent_rpcs.list_units if parent_rpcs.respond_to? :list_units - @list_units = ::Gapic::Config::Method.new list_units_config - get_unit_config = parent_rpcs.get_unit if parent_rpcs.respond_to? :get_unit - @get_unit = ::Gapic::Config::Method.new get_unit_config - create_unit_config = parent_rpcs.create_unit if parent_rpcs.respond_to? :create_unit - @create_unit = ::Gapic::Config::Method.new create_unit_config - update_unit_config = parent_rpcs.update_unit if parent_rpcs.respond_to? :update_unit - @update_unit = ::Gapic::Config::Method.new update_unit_config - delete_unit_config = parent_rpcs.delete_unit if parent_rpcs.respond_to? :delete_unit - @delete_unit = ::Gapic::Config::Method.new delete_unit_config - list_unit_operations_config = parent_rpcs.list_unit_operations if parent_rpcs.respond_to? :list_unit_operations - @list_unit_operations = ::Gapic::Config::Method.new list_unit_operations_config - get_unit_operation_config = parent_rpcs.get_unit_operation if parent_rpcs.respond_to? :get_unit_operation - @get_unit_operation = ::Gapic::Config::Method.new get_unit_operation_config - create_unit_operation_config = parent_rpcs.create_unit_operation if parent_rpcs.respond_to? :create_unit_operation - @create_unit_operation = ::Gapic::Config::Method.new create_unit_operation_config - update_unit_operation_config = parent_rpcs.update_unit_operation if parent_rpcs.respond_to? :update_unit_operation - @update_unit_operation = ::Gapic::Config::Method.new update_unit_operation_config - delete_unit_operation_config = parent_rpcs.delete_unit_operation if parent_rpcs.respond_to? :delete_unit_operation - @delete_unit_operation = ::Gapic::Config::Method.new delete_unit_operation_config - list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases - @list_releases = ::Gapic::Config::Method.new list_releases_config - get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release - @get_release = ::Gapic::Config::Method.new get_release_config - create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release - @create_release = ::Gapic::Config::Method.new create_release_config - update_release_config = parent_rpcs.update_release if parent_rpcs.respond_to? :update_release - @update_release = ::Gapic::Config::Method.new update_release_config - delete_release_config = parent_rpcs.delete_release if parent_rpcs.respond_to? :delete_release - @delete_release = ::Gapic::Config::Method.new delete_release_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb deleted file mode 100644 index 2d24511b8897..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasDeployments - # Credentials for the SaasDeployments API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform" - ] - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb deleted file mode 100644 index 6d3457f8559d..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb +++ /dev/null @@ -1,185 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasDeployments - # Path helper methods for the SaasDeployments API. - module Paths - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified Release resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/releases/{release}` - # - # @param project [String] - # @param location [String] - # @param release [String] - # - # @return [::String] - def release_path project:, location:, release: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/releases/#{release}" - end - - ## - # Create a fully-qualified Rollout resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/rollouts/{rollout_id}` - # - # @param project [String] - # @param location [String] - # @param rollout_id [String] - # - # @return [::String] - def rollout_path project:, location:, rollout_id: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/rollouts/#{rollout_id}" - end - - ## - # Create a fully-qualified Saas resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/saas/{saas}` - # - # @param project [String] - # @param location [String] - # @param saas [String] - # - # @return [::String] - def saas_path project:, location:, saas: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/saas/#{saas}" - end - - ## - # Create a fully-qualified Tenant resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/tenants/{tenant}` - # - # @param project [String] - # @param location [String] - # @param tenant [String] - # - # @return [::String] - def tenant_path project:, location:, tenant: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/tenants/#{tenant}" - end - - ## - # Create a fully-qualified Unit resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/units/{unit}` - # - # @param project [String] - # @param location [String] - # @param unit [String] - # - # @return [::String] - def unit_path project:, location:, unit: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/units/#{unit}" - end - - ## - # Create a fully-qualified UnitKind resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/unitKinds/{unit_kind}` - # - # @param project [String] - # @param location [String] - # @param unit_kind [String] - # - # @return [::String] - def unit_kind_path project:, location:, unit_kind: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/unitKinds/#{unit_kind}" - end - - ## - # Create a fully-qualified UnitOperation resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/unitOperations/{unit_operation}` - # - # @param project [String] - # @param location [String] - # @param unit_operation [String] - # - # @return [::String] - def unit_operation_path project:, location:, unit_operation: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/unitOperations/#{unit_operation}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb deleted file mode 100644 index d312932d45ac..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - ## - # Manages the deployment of SaaS services. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - module SaasDeployments - # Client for the REST transport - module Rest - end - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb deleted file mode 100644 index 242da77bafad..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb +++ /dev/null @@ -1,3557 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub" -require "google/cloud/location/rest" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasDeployments - module Rest - ## - # REST client for the SaasDeployments service. - # - # Manages the deployment of SaaS services. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :saas_deployments_stub - - ## - # Configure the SaasDeployments Client class. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SaasDeployments clients - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.list_saas.timeout = 80.0 - default_config.rpcs.list_saas.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_saas.timeout = 30.0 - default_config.rpcs.get_saas.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_saas.timeout = 30.0 - - default_config.rpcs.update_saas.timeout = 30.0 - - default_config.rpcs.delete_saas.timeout = 30.0 - default_config.rpcs.delete_saas.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_tenants.timeout = 80.0 - default_config.rpcs.list_tenants.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_tenant.timeout = 30.0 - default_config.rpcs.get_tenant.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_tenant.timeout = 30.0 - - default_config.rpcs.update_tenant.timeout = 30.0 - - default_config.rpcs.delete_tenant.timeout = 30.0 - default_config.rpcs.delete_tenant.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_unit_kinds.timeout = 80.0 - default_config.rpcs.list_unit_kinds.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_unit_kind.timeout = 30.0 - default_config.rpcs.get_unit_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_unit_kind.timeout = 30.0 - - default_config.rpcs.update_unit_kind.timeout = 80.0 - - default_config.rpcs.delete_unit_kind.timeout = 80.0 - default_config.rpcs.delete_unit_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_units.timeout = 80.0 - default_config.rpcs.list_units.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_unit.timeout = 30.0 - default_config.rpcs.get_unit.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_unit.timeout = 30.0 - - default_config.rpcs.update_unit.timeout = 30.0 - - default_config.rpcs.delete_unit.timeout = 30.0 - default_config.rpcs.delete_unit.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_unit_operations.timeout = 80.0 - default_config.rpcs.list_unit_operations.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_unit_operation.timeout = 30.0 - default_config.rpcs.get_unit_operation.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_unit_operation.timeout = 30.0 - - default_config.rpcs.update_unit_operation.timeout = 30.0 - - default_config.rpcs.delete_unit_operation.timeout = 30.0 - default_config.rpcs.delete_unit_operation.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_releases.timeout = 80.0 - default_config.rpcs.list_releases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_release.timeout = 30.0 - default_config.rpcs.get_release.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_release.timeout = 30.0 - - default_config.rpcs.update_release.timeout = 30.0 - - default_config.rpcs.delete_release.timeout = 30.0 - default_config.rpcs.delete_release.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SaasDeployments Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @saas_deployments_stub.universe_domain - end - - ## - # Create a new SaasDeployments REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SaasDeployments client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @saas_deployments_stub = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @saas_deployments_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @saas_deployments_stub.endpoint - config.universe_domain = @saas_deployments_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @saas_deployments_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @saas_deployments_stub.logger - end - - # Service calls - - ## - # Retrieve a collection of saas. - # - # @overload list_saas(request, options = nil) - # Pass arguments to `list_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_saas(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the saas. - # @param page_size [::Integer] - # The maximum number of saas to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new - # - # # Call the list_saas method. - # result = client.list_saas request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p item - # end - # - def list_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_saas.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.list_saas request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_saas, "saas", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single saas. - # - # @overload get_saas(request, options = nil) - # Pass arguments to `get_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_saas(name: nil) - # Pass arguments to `get_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new - # - # # Call the get_saas method. - # result = client.get_saas request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p result - # - def get_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_saas.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.get_saas request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new saas. - # - # @overload create_saas(request, options = nil) - # Pass arguments to `create_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_saas(parent: nil, saas_id: nil, saas: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the saas. - # @param saas_id [::String] - # Required. The ID value for the new saas. - # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] - # Required. The desired state for the saas. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new - # - # # Call the create_saas method. - # result = client.create_saas request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p result - # - def create_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_saas.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.create_saas request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single saas. - # - # @overload update_saas(request, options = nil) - # Pass arguments to `update_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_saas(saas: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param saas [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas, ::Hash] - # Required. The desired state for the saas. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Saas resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Saas will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new - # - # # Call the update_saas method. - # result = client.update_saas request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - # p result - # - def update_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_saas.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.update_saas request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single saas. - # - # @overload delete_saas(request, options = nil) - # Pass arguments to `delete_saas` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_saas(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_saas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the saas. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the saas. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new - # - # # Call the delete_saas method. - # result = client.delete_saas request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_saas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_saas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_saas.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_saas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.delete_saas request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of tenants. - # - # @overload list_tenants(request, options = nil) - # Pass arguments to `list_tenants` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_tenants(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_tenants` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the tenant. - # @param page_size [::Integer] - # The maximum number of tenants to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new - # - # # Call the list_tenants method. - # result = client.list_tenants request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p item - # end - # - def list_tenants request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_tenants.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_tenants.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_tenants.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.list_tenants request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_tenants, "tenants", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single tenant. - # - # @overload get_tenant(request, options = nil) - # Pass arguments to `get_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_tenant(name: nil) - # Pass arguments to `get_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new - # - # # Call the get_tenant method. - # result = client.get_tenant request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p result - # - def get_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_tenant.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.get_tenant request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new tenant. - # - # @overload create_tenant(request, options = nil) - # Pass arguments to `create_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_tenant(parent: nil, tenant_id: nil, tenant: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the tenant. - # @param tenant_id [::String] - # Required. The ID value for the new tenant. - # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] - # Required. The desired state for the tenant. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new - # - # # Call the create_tenant method. - # result = client.create_tenant request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p result - # - def create_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_tenant.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.create_tenant request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single tenant. - # - # @overload update_tenant(request, options = nil) - # Pass arguments to `update_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_tenant(tenant: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param tenant [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant, ::Hash] - # Required. The desired state for the tenant. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Tenant resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Tenant will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new - # - # # Call the update_tenant method. - # result = client.update_tenant request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - # p result - # - def update_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_tenant.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.update_tenant request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single tenant. - # - # @overload delete_tenant(request, options = nil) - # Pass arguments to `delete_tenant` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_tenant(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_tenant` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the tenant. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the tenant. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new - # - # # Call the delete_tenant method. - # result = client.delete_tenant request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_tenant request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_tenant.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_tenant.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_tenant.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.delete_tenant request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of unit kinds. - # - # @overload list_unit_kinds(request, options = nil) - # Pass arguments to `list_unit_kinds` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_unit_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_unit_kinds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit kind. - # @param page_size [::Integer] - # The maximum number of unit kinds to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new - # - # # Call the list_unit_kinds method. - # result = client.list_unit_kinds request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p item - # end - # - def list_unit_kinds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_unit_kinds.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_unit_kinds.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_unit_kinds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.list_unit_kinds request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_unit_kinds, "unit_kinds", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single unit kind. - # - # @overload get_unit_kind(request, options = nil) - # Pass arguments to `get_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_unit_kind(name: nil) - # Pass arguments to `get_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new - # - # # Call the get_unit_kind method. - # result = client.get_unit_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p result - # - def get_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_unit_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.get_unit_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new unit kind. - # - # @overload create_unit_kind(request, options = nil) - # Pass arguments to `create_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_unit_kind(parent: nil, unit_kind_id: nil, unit_kind: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit kind. - # @param unit_kind_id [::String] - # Required. The ID value for the new unit kind. - # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] - # Required. The desired state for the unit kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new - # - # # Call the create_unit_kind method. - # result = client.create_unit_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p result - # - def create_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_unit_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.create_unit_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single unit kind. - # - # @overload update_unit_kind(request, options = nil) - # Pass arguments to `update_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_unit_kind(unit_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param unit_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind, ::Hash] - # Required. The desired state for the unit kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # UnitKind resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # UnitKind will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new - # - # # Call the update_unit_kind method. - # result = client.update_unit_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - # p result - # - def update_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_unit_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.update_unit_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single unit kind. - # - # @overload delete_unit_kind(request, options = nil) - # Pass arguments to `delete_unit_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_unit_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_unit_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the unit kind. This - # is used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit kind. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new - # - # # Call the delete_unit_kind method. - # result = client.delete_unit_kind request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_unit_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_unit_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_unit_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_unit_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.delete_unit_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of units. - # - # @overload list_units(request, options = nil) - # Pass arguments to `list_units` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_units(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_units` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit. - # @param page_size [::Integer] - # The maximum number of units to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new - # - # # Call the list_units method. - # result = client.list_units request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p item - # end - # - def list_units request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_units.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_units.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_units.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.list_units request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_units, "units", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single unit. - # - # @overload get_unit(request, options = nil) - # Pass arguments to `get_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_unit(name: nil) - # Pass arguments to `get_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new - # - # # Call the get_unit method. - # result = client.get_unit request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p result - # - def get_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_unit.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.get_unit request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new unit. - # - # @overload create_unit(request, options = nil) - # Pass arguments to `create_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_unit(parent: nil, unit_id: nil, unit: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit. - # @param unit_id [::String] - # Required. The ID value for the new unit. - # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] - # Required. The desired state for the unit. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new - # - # # Call the create_unit method. - # result = client.create_unit request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p result - # - def create_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_unit.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.create_unit request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single unit. - # - # @overload update_unit(request, options = nil) - # Pass arguments to `update_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_unit(unit: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param unit [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit, ::Hash] - # Required. The desired state for the unit. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Unit resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Unit will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new - # - # # Call the update_unit method. - # result = client.update_unit request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - # p result - # - def update_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_unit.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.update_unit request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single unit. - # - # @overload delete_unit(request, options = nil) - # Pass arguments to `delete_unit` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_unit(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_unit` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the unit. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new - # - # # Call the delete_unit method. - # result = client.delete_unit request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_unit request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_unit.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_unit.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_unit.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.delete_unit request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of unit operations. - # - # @overload list_unit_operations(request, options = nil) - # Pass arguments to `list_unit_operations` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_unit_operations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_unit_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit operation. - # @param page_size [::Integer] - # The maximum number of unit operations to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new - # - # # Call the list_unit_operations method. - # result = client.list_unit_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p item - # end - # - def list_unit_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_unit_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_unit_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_unit_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.list_unit_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_unit_operations, "unit_operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single unit operation. - # - # @overload get_unit_operation(request, options = nil) - # Pass arguments to `get_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_unit_operation(name: nil) - # Pass arguments to `get_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new - # - # # Call the get_unit_operation method. - # result = client.get_unit_operation request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p result - # - def get_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_unit_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.get_unit_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new unit operation. - # - # @overload create_unit_operation(request, options = nil) - # Pass arguments to `create_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_unit_operation(parent: nil, unit_operation_id: nil, unit_operation: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the unit operation. - # @param unit_operation_id [::String] - # Required. The ID value for the new unit operation. - # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] - # Required. The desired state for the unit operation. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new - # - # # Call the create_unit_operation method. - # result = client.create_unit_operation request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p result - # - def create_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_unit_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.create_unit_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single unit operation. - # - # @overload update_unit_operation(request, options = nil) - # Pass arguments to `update_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_unit_operation(unit_operation: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param unit_operation [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation, ::Hash] - # Required. The desired state for the unit operation. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # UnitOperation resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # UnitOperation will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new - # - # # Call the update_unit_operation method. - # result = client.update_unit_operation request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - # p result - # - def update_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_unit_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.update_unit_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single unit operation. - # - # @overload delete_unit_operation(request, options = nil) - # Pass arguments to `delete_unit_operation` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_unit_operation(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_unit_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the unit operation. - # This is used with state-changing methods to prevent accidental overwrites - # when multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit operation. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new - # - # # Call the delete_unit_operation method. - # result = client.delete_unit_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_unit_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_unit_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_unit_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_unit_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.delete_unit_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of releases. - # - # @overload list_releases(request, options = nil) - # Pass arguments to `list_releases` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_releases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_releases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the release. - # @param page_size [::Integer] - # The maximum number of releases to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new - # - # # Call the list_releases method. - # result = client.list_releases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p item - # end - # - def list_releases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_releases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_releases.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_releases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.list_releases request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_deployments_stub, :list_releases, "releases", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single release. - # - # @overload get_release(request, options = nil) - # Pass arguments to `get_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_release(name: nil) - # Pass arguments to `get_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new - # - # # Call the get_release method. - # result = client.get_release request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p result - # - def get_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_release.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.get_release request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new release. - # - # @overload create_release(request, options = nil) - # Pass arguments to `create_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_release(parent: nil, release_id: nil, release: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the release. - # @param release_id [::String] - # Required. The ID value for the new release. - # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] - # Required. The desired state for the release. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new - # - # # Call the create_release method. - # result = client.create_release request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p result - # - def create_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_release.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.create_release request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single release. - # - # @overload update_release(request, options = nil) - # Pass arguments to `update_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_release(release: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param release [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release, ::Hash] - # Required. The desired state for the release. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Release resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Release will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new - # - # # Call the update_release method. - # result = client.update_release request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - # p result - # - def update_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_release.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.update_release request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single release. - # - # @overload delete_release(request, options = nil) - # Pass arguments to `delete_release` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_release(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_release` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the release. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the release. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new - # - # # Call the delete_release method. - # result = client.delete_release request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_release.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_release.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_release.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_deployments_stub.delete_release request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the SaasDeployments REST API. - # - # This class represents the configuration for SaasDeployments REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_saas to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_saas.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_saas.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - - # @private - # Overrides for http bindings for the RPCs of this service - # are only used when this service is used as mixin, and only - # by the host service. - # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] - config_attr :bindings_override, {}, ::Hash, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the SaasDeployments API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :list_saas - ## - # RPC-specific configuration for `get_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :get_saas - ## - # RPC-specific configuration for `create_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :create_saas - ## - # RPC-specific configuration for `update_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :update_saas - ## - # RPC-specific configuration for `delete_saas` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_saas - ## - # RPC-specific configuration for `list_tenants` - # @return [::Gapic::Config::Method] - # - attr_reader :list_tenants - ## - # RPC-specific configuration for `get_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :get_tenant - ## - # RPC-specific configuration for `create_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :create_tenant - ## - # RPC-specific configuration for `update_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :update_tenant - ## - # RPC-specific configuration for `delete_tenant` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_tenant - ## - # RPC-specific configuration for `list_unit_kinds` - # @return [::Gapic::Config::Method] - # - attr_reader :list_unit_kinds - ## - # RPC-specific configuration for `get_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :get_unit_kind - ## - # RPC-specific configuration for `create_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :create_unit_kind - ## - # RPC-specific configuration for `update_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :update_unit_kind - ## - # RPC-specific configuration for `delete_unit_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_unit_kind - ## - # RPC-specific configuration for `list_units` - # @return [::Gapic::Config::Method] - # - attr_reader :list_units - ## - # RPC-specific configuration for `get_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :get_unit - ## - # RPC-specific configuration for `create_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :create_unit - ## - # RPC-specific configuration for `update_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :update_unit - ## - # RPC-specific configuration for `delete_unit` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_unit - ## - # RPC-specific configuration for `list_unit_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_unit_operations - ## - # RPC-specific configuration for `get_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_unit_operation - ## - # RPC-specific configuration for `create_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_unit_operation - ## - # RPC-specific configuration for `update_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :update_unit_operation - ## - # RPC-specific configuration for `delete_unit_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_unit_operation - ## - # RPC-specific configuration for `list_releases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_releases - ## - # RPC-specific configuration for `get_release` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release - ## - # RPC-specific configuration for `create_release` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release - ## - # RPC-specific configuration for `update_release` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release - ## - # RPC-specific configuration for `delete_release` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release - - # @private - def initialize parent_rpcs = nil - list_saas_config = parent_rpcs.list_saas if parent_rpcs.respond_to? :list_saas - @list_saas = ::Gapic::Config::Method.new list_saas_config - get_saas_config = parent_rpcs.get_saas if parent_rpcs.respond_to? :get_saas - @get_saas = ::Gapic::Config::Method.new get_saas_config - create_saas_config = parent_rpcs.create_saas if parent_rpcs.respond_to? :create_saas - @create_saas = ::Gapic::Config::Method.new create_saas_config - update_saas_config = parent_rpcs.update_saas if parent_rpcs.respond_to? :update_saas - @update_saas = ::Gapic::Config::Method.new update_saas_config - delete_saas_config = parent_rpcs.delete_saas if parent_rpcs.respond_to? :delete_saas - @delete_saas = ::Gapic::Config::Method.new delete_saas_config - list_tenants_config = parent_rpcs.list_tenants if parent_rpcs.respond_to? :list_tenants - @list_tenants = ::Gapic::Config::Method.new list_tenants_config - get_tenant_config = parent_rpcs.get_tenant if parent_rpcs.respond_to? :get_tenant - @get_tenant = ::Gapic::Config::Method.new get_tenant_config - create_tenant_config = parent_rpcs.create_tenant if parent_rpcs.respond_to? :create_tenant - @create_tenant = ::Gapic::Config::Method.new create_tenant_config - update_tenant_config = parent_rpcs.update_tenant if parent_rpcs.respond_to? :update_tenant - @update_tenant = ::Gapic::Config::Method.new update_tenant_config - delete_tenant_config = parent_rpcs.delete_tenant if parent_rpcs.respond_to? :delete_tenant - @delete_tenant = ::Gapic::Config::Method.new delete_tenant_config - list_unit_kinds_config = parent_rpcs.list_unit_kinds if parent_rpcs.respond_to? :list_unit_kinds - @list_unit_kinds = ::Gapic::Config::Method.new list_unit_kinds_config - get_unit_kind_config = parent_rpcs.get_unit_kind if parent_rpcs.respond_to? :get_unit_kind - @get_unit_kind = ::Gapic::Config::Method.new get_unit_kind_config - create_unit_kind_config = parent_rpcs.create_unit_kind if parent_rpcs.respond_to? :create_unit_kind - @create_unit_kind = ::Gapic::Config::Method.new create_unit_kind_config - update_unit_kind_config = parent_rpcs.update_unit_kind if parent_rpcs.respond_to? :update_unit_kind - @update_unit_kind = ::Gapic::Config::Method.new update_unit_kind_config - delete_unit_kind_config = parent_rpcs.delete_unit_kind if parent_rpcs.respond_to? :delete_unit_kind - @delete_unit_kind = ::Gapic::Config::Method.new delete_unit_kind_config - list_units_config = parent_rpcs.list_units if parent_rpcs.respond_to? :list_units - @list_units = ::Gapic::Config::Method.new list_units_config - get_unit_config = parent_rpcs.get_unit if parent_rpcs.respond_to? :get_unit - @get_unit = ::Gapic::Config::Method.new get_unit_config - create_unit_config = parent_rpcs.create_unit if parent_rpcs.respond_to? :create_unit - @create_unit = ::Gapic::Config::Method.new create_unit_config - update_unit_config = parent_rpcs.update_unit if parent_rpcs.respond_to? :update_unit - @update_unit = ::Gapic::Config::Method.new update_unit_config - delete_unit_config = parent_rpcs.delete_unit if parent_rpcs.respond_to? :delete_unit - @delete_unit = ::Gapic::Config::Method.new delete_unit_config - list_unit_operations_config = parent_rpcs.list_unit_operations if parent_rpcs.respond_to? :list_unit_operations - @list_unit_operations = ::Gapic::Config::Method.new list_unit_operations_config - get_unit_operation_config = parent_rpcs.get_unit_operation if parent_rpcs.respond_to? :get_unit_operation - @get_unit_operation = ::Gapic::Config::Method.new get_unit_operation_config - create_unit_operation_config = parent_rpcs.create_unit_operation if parent_rpcs.respond_to? :create_unit_operation - @create_unit_operation = ::Gapic::Config::Method.new create_unit_operation_config - update_unit_operation_config = parent_rpcs.update_unit_operation if parent_rpcs.respond_to? :update_unit_operation - @update_unit_operation = ::Gapic::Config::Method.new update_unit_operation_config - delete_unit_operation_config = parent_rpcs.delete_unit_operation if parent_rpcs.respond_to? :delete_unit_operation - @delete_unit_operation = ::Gapic::Config::Method.new delete_unit_operation_config - list_releases_config = parent_rpcs.list_releases if parent_rpcs.respond_to? :list_releases - @list_releases = ::Gapic::Config::Method.new list_releases_config - get_release_config = parent_rpcs.get_release if parent_rpcs.respond_to? :get_release - @get_release = ::Gapic::Config::Method.new get_release_config - create_release_config = parent_rpcs.create_release if parent_rpcs.respond_to? :create_release - @create_release = ::Gapic::Config::Method.new create_release_config - update_release_config = parent_rpcs.update_release if parent_rpcs.respond_to? :update_release - @update_release = ::Gapic::Config::Method.new update_release_config - delete_release_config = parent_rpcs.delete_release if parent_rpcs.respond_to? :delete_release - @delete_release = ::Gapic::Config::Method.new delete_release_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb deleted file mode 100644 index f5cdfdb251a2..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb +++ /dev/null @@ -1,1925 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasDeployments - module Rest - ## - # REST service stub for the SaasDeployments service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the list_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse] - # A result object deserialized from the server's reply - def list_saas request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_saas_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_saas", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # A result object deserialized from the server's reply - def get_saas request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_saas_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_saas", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # A result object deserialized from the server's reply - def create_saas request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_saas_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_saas", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # A result object deserialized from the server's reply - def update_saas request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_saas_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_saas", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_saas request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_saas_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_saas", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_tenants REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse] - # A result object deserialized from the server's reply - def list_tenants request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_tenants_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_tenants", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # A result object deserialized from the server's reply - def get_tenant request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_tenant_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_tenant", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # A result object deserialized from the server's reply - def create_tenant request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_tenant_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_tenant", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # A result object deserialized from the server's reply - def update_tenant request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_tenant_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_tenant", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_tenant request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_tenant_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_tenant", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_unit_kinds REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse] - # A result object deserialized from the server's reply - def list_unit_kinds request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_unit_kinds_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_unit_kinds", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # A result object deserialized from the server's reply - def get_unit_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_unit_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # A result object deserialized from the server's reply - def create_unit_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_unit_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # A result object deserialized from the server's reply - def update_unit_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_unit_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_unit_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_unit_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_units REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse] - # A result object deserialized from the server's reply - def list_units request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_units_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_units", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # A result object deserialized from the server's reply - def get_unit request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_unit", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # A result object deserialized from the server's reply - def create_unit request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_unit", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # A result object deserialized from the server's reply - def update_unit request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_unit", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_unit request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_unit", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_unit_operations REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse] - # A result object deserialized from the server's reply - def list_unit_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_unit_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_unit_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # A result object deserialized from the server's reply - def get_unit_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_unit_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # A result object deserialized from the server's reply - def create_unit_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_unit_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # A result object deserialized from the server's reply - def update_unit_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_unit_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_unit_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_unit_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_releases REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse] - # A result object deserialized from the server's reply - def list_releases request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_releases_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_releases", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # A result object deserialized from the server's reply - def get_release request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_release_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_release", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # A result object deserialized from the server's reply - def create_release request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_release_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_release", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # A result object deserialized from the server's reply - def update_release request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_release_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_release", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_release request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_release", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_saas_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/saas", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_saas_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_saas_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/saas", - body: "saas", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_saas_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{saas.name}", - body: "saas", - matches: [ - ["saas.name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_saas REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_saas_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_tenants REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_tenants_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/tenants", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_tenant_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_tenant_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/tenants", - body: "tenant", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_tenant_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{tenant.name}", - body: "tenant", - matches: [ - ["tenant.name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_tenant REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_tenant_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_unit_kinds REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_unit_kinds_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/unitKinds", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_unit_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_unit_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/unitKinds", - body: "unit_kind", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_unit_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{unit_kind.name}", - body: "unit_kind", - matches: [ - ["unit_kind.name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_unit_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_unit_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_units REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_units_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/units", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_unit_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_unit_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/units", - body: "unit", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_unit_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{unit.name}", - body: "unit", - matches: [ - ["unit.name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_unit REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_unit_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_unit_operations REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_unit_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/unitOperations", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_unit_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_unit_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/unitOperations", - body: "unit_operation", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_unit_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{unit_operation.name}", - body: "unit_operation", - matches: [ - ["unit_operation.name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_unit_operation REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_unit_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_releases REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_releases_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/releases", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_release_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_release_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/releases", - body: "release", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_release_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{release.name}", - body: "release", - matches: [ - ["release.name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_release REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_release_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb deleted file mode 100644 index 5e1c1a19ccc6..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - ## - # Manages the rollout of SaaS services. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - module SaasRollouts - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "saas_rollouts", "helpers.rb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb deleted file mode 100644 index 887bff6b5738..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb +++ /dev/null @@ -1,1534 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" -require "google/cloud/location" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasRollouts - ## - # Client for the SaasRollouts service. - # - # Manages the rollout of SaaS services. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :saas_rollouts_stub - - ## - # Configure the SaasRollouts Client class. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SaasRollouts clients - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.list_rollouts.timeout = 60.0 - default_config.rpcs.list_rollouts.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_rollout.timeout = 60.0 - default_config.rpcs.get_rollout.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_rollout.timeout = 60.0 - - default_config.rpcs.update_rollout.timeout = 60.0 - - default_config.rpcs.delete_rollout.timeout = 540.0 - default_config.rpcs.delete_rollout.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_rollout_kinds.timeout = 60.0 - default_config.rpcs.list_rollout_kinds.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_rollout_kind.timeout = 60.0 - default_config.rpcs.get_rollout_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_rollout_kind.timeout = 60.0 - - default_config.rpcs.update_rollout_kind.timeout = 60.0 - - default_config.rpcs.delete_rollout_kind.timeout = 60.0 - default_config.rpcs.delete_rollout_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SaasRollouts Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @saas_rollouts_stub.universe_domain - end - - ## - # Create a new SaasRollouts client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SaasRollouts client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @saas_rollouts_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @saas_rollouts_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @saas_rollouts_stub.endpoint - config.universe_domain = @saas_rollouts_stub.universe_domain - config.logger = @saas_rollouts_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Client] - # - attr_reader :location_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @saas_rollouts_stub.logger - end - - # Service calls - - ## - # Retrieve a collection of rollouts. - # - # @overload list_rollouts(request, options = nil) - # Pass arguments to `list_rollouts` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_rollouts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_rollouts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout. - # @param page_size [::Integer] - # The maximum number of rollouts to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new - # - # # Call the list_rollouts method. - # result = client.list_rollouts request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p item - # end - # - def list_rollouts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_rollouts.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_rollouts.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_rollouts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :list_rollouts, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_rollouts_stub, :list_rollouts, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single rollout. - # - # @overload get_rollout(request, options = nil) - # Pass arguments to `get_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_rollout(name: nil) - # Pass arguments to `get_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new - # - # # Call the get_rollout method. - # result = client.get_rollout request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p result - # - def get_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_rollout.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :get_rollout, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new rollout. - # - # @overload create_rollout(request, options = nil) - # Pass arguments to `create_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_rollout(parent: nil, rollout_id: nil, rollout: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout. - # @param rollout_id [::String] - # Required. The ID value for the new rollout. - # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] - # Required. The desired state for the rollout. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new - # - # # Call the create_rollout method. - # result = client.create_rollout request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p result - # - def create_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_rollout.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :create_rollout, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single rollout. - # - # @overload update_rollout(request, options = nil) - # Pass arguments to `update_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_rollout(rollout: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] - # Required. The desired state for the rollout. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Rollout resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Rollout will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new - # - # # Call the update_rollout method. - # result = client.update_rollout request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p result - # - def update_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.rollout&.name - header_params["rollout.name"] = request.rollout.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_rollout.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :update_rollout, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single rollout. - # - # @overload delete_rollout(request, options = nil) - # Pass arguments to `delete_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_rollout(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the rollout. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the rollout. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new - # - # # Call the delete_rollout method. - # result = client.delete_rollout request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_rollout.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :delete_rollout, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of rollout kinds. - # - # @overload list_rollout_kinds(request, options = nil) - # Pass arguments to `list_rollout_kinds` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_rollout_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_rollout_kinds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout kind. - # @param page_size [::Integer] - # The maximum number of rollout kinds to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new - # - # # Call the list_rollout_kinds method. - # result = client.list_rollout_kinds request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p item - # end - # - def list_rollout_kinds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_rollout_kinds.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_rollout_kinds.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_rollout_kinds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :list_rollout_kinds, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @saas_rollouts_stub, :list_rollout_kinds, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single rollout kind. - # - # @overload get_rollout_kind(request, options = nil) - # Pass arguments to `get_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_rollout_kind(name: nil) - # Pass arguments to `get_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new - # - # # Call the get_rollout_kind method. - # result = client.get_rollout_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p result - # - def get_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_rollout_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :get_rollout_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new rollout kind. - # - # @overload create_rollout_kind(request, options = nil) - # Pass arguments to `create_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_rollout_kind(parent: nil, rollout_kind_id: nil, rollout_kind: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout kind. - # @param rollout_kind_id [::String] - # Required. The ID value for the new rollout kind. - # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] - # Required. The desired state for the rollout kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new - # - # # Call the create_rollout_kind method. - # result = client.create_rollout_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p result - # - def create_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_rollout_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :create_rollout_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single rollout kind. - # - # @overload update_rollout_kind(request, options = nil) - # Pass arguments to `update_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_rollout_kind(rollout_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] - # Required. The desired state for the rollout kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # RolloutKind resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # RolloutKind will be overwritten. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new - # - # # Call the update_rollout_kind method. - # result = client.update_rollout_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p result - # - def update_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.rollout_kind&.name - header_params["rollout_kind.name"] = request.rollout_kind.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_rollout_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :update_rollout_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single rollout kind. - # - # @overload delete_rollout_kind(request, options = nil) - # Pass arguments to `delete_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_rollout_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the rollout kind. - # This is used with state-changing methods to prevent accidental overwrites - # when multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the rollout kind. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new - # - # # Call the delete_rollout_kind method. - # result = client.delete_rollout_kind request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_rollout_kind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.call_rpc :delete_rollout_kind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the SaasRollouts API. - # - # This class represents the configuration for SaasRollouts, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_rollouts to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_rollouts.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_rollouts.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the SaasRollouts API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_rollouts` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rollouts - ## - # RPC-specific configuration for `get_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :get_rollout - ## - # RPC-specific configuration for `create_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollout - ## - # RPC-specific configuration for `update_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :update_rollout - ## - # RPC-specific configuration for `delete_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_rollout - ## - # RPC-specific configuration for `list_rollout_kinds` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rollout_kinds - ## - # RPC-specific configuration for `get_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :get_rollout_kind - ## - # RPC-specific configuration for `create_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollout_kind - ## - # RPC-specific configuration for `update_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :update_rollout_kind - ## - # RPC-specific configuration for `delete_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_rollout_kind - - # @private - def initialize parent_rpcs = nil - list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts - @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config - get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout - @get_rollout = ::Gapic::Config::Method.new get_rollout_config - create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout - @create_rollout = ::Gapic::Config::Method.new create_rollout_config - update_rollout_config = parent_rpcs.update_rollout if parent_rpcs.respond_to? :update_rollout - @update_rollout = ::Gapic::Config::Method.new update_rollout_config - delete_rollout_config = parent_rpcs.delete_rollout if parent_rpcs.respond_to? :delete_rollout - @delete_rollout = ::Gapic::Config::Method.new delete_rollout_config - list_rollout_kinds_config = parent_rpcs.list_rollout_kinds if parent_rpcs.respond_to? :list_rollout_kinds - @list_rollout_kinds = ::Gapic::Config::Method.new list_rollout_kinds_config - get_rollout_kind_config = parent_rpcs.get_rollout_kind if parent_rpcs.respond_to? :get_rollout_kind - @get_rollout_kind = ::Gapic::Config::Method.new get_rollout_kind_config - create_rollout_kind_config = parent_rpcs.create_rollout_kind if parent_rpcs.respond_to? :create_rollout_kind - @create_rollout_kind = ::Gapic::Config::Method.new create_rollout_kind_config - update_rollout_kind_config = parent_rpcs.update_rollout_kind if parent_rpcs.respond_to? :update_rollout_kind - @update_rollout_kind = ::Gapic::Config::Method.new update_rollout_kind_config - delete_rollout_kind_config = parent_rpcs.delete_rollout_kind if parent_rpcs.respond_to? :delete_rollout_kind - @delete_rollout_kind = ::Gapic::Config::Method.new delete_rollout_kind_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb deleted file mode 100644 index 120f664d6639..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasRollouts - # Credentials for the SaasRollouts API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform" - ] - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb deleted file mode 100644 index 3e94a7b7305c..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb +++ /dev/null @@ -1,128 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasRollouts - # Path helper methods for the SaasRollouts API. - module Paths - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified Release resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/releases/{release}` - # - # @param project [String] - # @param location [String] - # @param release [String] - # - # @return [::String] - def release_path project:, location:, release: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/releases/#{release}" - end - - ## - # Create a fully-qualified Rollout resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/rollouts/{rollout_id}` - # - # @param project [String] - # @param location [String] - # @param rollout_id [String] - # - # @return [::String] - def rollout_path project:, location:, rollout_id: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/rollouts/#{rollout_id}" - end - - ## - # Create a fully-qualified RolloutKind resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}` - # - # @param project [String] - # @param location [String] - # @param rollout_kind_id [String] - # - # @return [::String] - def rollout_kind_path project:, location:, rollout_kind_id: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/rolloutKinds/#{rollout_kind_id}" - end - - ## - # Create a fully-qualified UnitKind resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/unitKinds/{unit_kind}` - # - # @param project [String] - # @param location [String] - # @param unit_kind [String] - # - # @return [::String] - def unit_kind_path project:, location:, unit_kind: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/unitKinds/#{unit_kind}" - end - - extend self - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb deleted file mode 100644 index d93824138b96..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/version" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - ## - # Manages the rollout of SaaS services. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - module SaasRollouts - # Client for the REST transport - module Rest - end - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb deleted file mode 100644 index 9b51fa8ce98a..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb +++ /dev/null @@ -1,1429 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub" -require "google/cloud/location/rest" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasRollouts - module Rest - ## - # REST client for the SaasRollouts service. - # - # Manages the rollout of SaaS services. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :saas_rollouts_stub - - ## - # Configure the SaasRollouts Client class. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all SaasRollouts clients - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.rpcs.list_rollouts.timeout = 60.0 - default_config.rpcs.list_rollouts.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_rollout.timeout = 60.0 - default_config.rpcs.get_rollout.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_rollout.timeout = 60.0 - - default_config.rpcs.update_rollout.timeout = 60.0 - - default_config.rpcs.delete_rollout.timeout = 540.0 - default_config.rpcs.delete_rollout.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.list_rollout_kinds.timeout = 60.0 - default_config.rpcs.list_rollout_kinds.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.get_rollout_kind.timeout = 60.0 - default_config.rpcs.get_rollout_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config.rpcs.create_rollout_kind.timeout = 60.0 - - default_config.rpcs.update_rollout_kind.timeout = 60.0 - - default_config.rpcs.delete_rollout_kind.timeout = 60.0 - default_config.rpcs.delete_rollout_kind.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the SaasRollouts Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @saas_rollouts_stub.universe_domain - end - - ## - # Create a new SaasRollouts REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the SaasRollouts client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @saas_rollouts_stub = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @saas_rollouts_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @saas_rollouts_stub.endpoint - config.universe_domain = @saas_rollouts_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @saas_rollouts_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @saas_rollouts_stub.logger - end - - # Service calls - - ## - # Retrieve a collection of rollouts. - # - # @overload list_rollouts(request, options = nil) - # Pass arguments to `list_rollouts` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_rollouts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_rollouts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout. - # @param page_size [::Integer] - # The maximum number of rollouts to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new - # - # # Call the list_rollouts method. - # result = client.list_rollouts request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p item - # end - # - def list_rollouts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_rollouts.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_rollouts.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_rollouts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.list_rollouts request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_rollouts_stub, :list_rollouts, "rollouts", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single rollout. - # - # @overload get_rollout(request, options = nil) - # Pass arguments to `get_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_rollout(name: nil) - # Pass arguments to `get_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new - # - # # Call the get_rollout method. - # result = client.get_rollout request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p result - # - def get_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_rollout.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.get_rollout request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new rollout. - # - # @overload create_rollout(request, options = nil) - # Pass arguments to `create_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_rollout(parent: nil, rollout_id: nil, rollout: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout. - # @param rollout_id [::String] - # Required. The ID value for the new rollout. - # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] - # Required. The desired state for the rollout. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new - # - # # Call the create_rollout method. - # result = client.create_rollout request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p result - # - def create_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_rollout.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.create_rollout request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single rollout. - # - # @overload update_rollout(request, options = nil) - # Pass arguments to `update_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_rollout(rollout: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash] - # Required. The desired state for the rollout. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # Rollout resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Rollout will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new - # - # # Call the update_rollout method. - # result = client.update_rollout request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - # p result - # - def update_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_rollout.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.update_rollout request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single rollout. - # - # @overload delete_rollout(request, options = nil) - # Pass arguments to `delete_rollout` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_rollout(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_rollout` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the rollout. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the rollout. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new - # - # # Call the delete_rollout method. - # result = client.delete_rollout request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_rollout request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_rollout.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_rollout.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_rollout.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.delete_rollout request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a collection of rollout kinds. - # - # @overload list_rollout_kinds(request, options = nil) - # Pass arguments to `list_rollout_kinds` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_rollout_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_rollout_kinds` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout kind. - # @param page_size [::Integer] - # The maximum number of rollout kinds to send per page. - # @param page_token [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @param filter [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Order results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new - # - # # Call the list_rollout_kinds method. - # result = client.list_rollout_kinds request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p item - # end - # - def list_rollout_kinds request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_rollout_kinds.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_rollout_kinds.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_rollout_kinds.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.list_rollout_kinds request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @saas_rollouts_stub, :list_rollout_kinds, "rollout_kinds", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single rollout kind. - # - # @overload get_rollout_kind(request, options = nil) - # Pass arguments to `get_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_rollout_kind(name: nil) - # Pass arguments to `get_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new - # - # # Call the get_rollout_kind method. - # result = client.get_rollout_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p result - # - def get_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_rollout_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.get_rollout_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a new rollout kind. - # - # @overload create_rollout_kind(request, options = nil) - # Pass arguments to `create_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_rollout_kind(parent: nil, rollout_kind_id: nil, rollout_kind: nil, validate_only: nil, request_id: nil) - # Pass arguments to `create_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent of the rollout kind. - # @param rollout_kind_id [::String] - # Required. The ID value for the new rollout kind. - # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] - # Required. The desired state for the rollout kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new - # - # # Call the create_rollout_kind method. - # result = client.create_rollout_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p result - # - def create_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_rollout_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.create_rollout_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update a single rollout kind. - # - # @overload update_rollout_kind(request, options = nil) - # Pass arguments to `update_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_rollout_kind(rollout_kind: nil, validate_only: nil, request_id: nil, update_mask: nil) - # Pass arguments to `update_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash] - # Required. The desired state for the rollout kind. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Field mask is used to specify the fields to be overwritten in the - # RolloutKind resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # RolloutKind will be overwritten. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new - # - # # Call the update_rollout_kind method. - # result = client.update_rollout_kind request - # - # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - # p result - # - def update_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_rollout_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.update_rollout_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Delete a single rollout kind. - # - # @overload delete_rollout_kind(request, options = nil) - # Pass arguments to `delete_rollout_kind` via a request object, either of type - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_rollout_kind(name: nil, etag: nil, validate_only: nil, request_id: nil) - # Pass arguments to `delete_rollout_kind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the resource within a service. - # @param etag [::String] - # The etag known to the client for the expected state of the rollout kind. - # This is used with state-changing methods to prevent accidental overwrites - # when multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the rollout kind. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @param validate_only [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @param request_id [::String] - # An optional 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 since 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). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new - # - # # Call the delete_rollout_kind method. - # result = client.delete_rollout_kind request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_rollout_kind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_rollout_kind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_rollout_kind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_rollout_kind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @saas_rollouts_stub.delete_rollout_kind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the SaasRollouts REST API. - # - # This class represents the configuration for SaasRollouts REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_rollouts to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_rollouts.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_rollouts.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - - # @private - # Overrides for http bindings for the RPCs of this service - # are only used when this service is used as mixin, and only - # by the host service. - # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] - config_attr :bindings_override, {}, ::Hash, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the SaasRollouts API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_rollouts` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rollouts - ## - # RPC-specific configuration for `get_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :get_rollout - ## - # RPC-specific configuration for `create_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollout - ## - # RPC-specific configuration for `update_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :update_rollout - ## - # RPC-specific configuration for `delete_rollout` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_rollout - ## - # RPC-specific configuration for `list_rollout_kinds` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rollout_kinds - ## - # RPC-specific configuration for `get_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :get_rollout_kind - ## - # RPC-specific configuration for `create_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollout_kind - ## - # RPC-specific configuration for `update_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :update_rollout_kind - ## - # RPC-specific configuration for `delete_rollout_kind` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_rollout_kind - - # @private - def initialize parent_rpcs = nil - list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts - @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config - get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout - @get_rollout = ::Gapic::Config::Method.new get_rollout_config - create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout - @create_rollout = ::Gapic::Config::Method.new create_rollout_config - update_rollout_config = parent_rpcs.update_rollout if parent_rpcs.respond_to? :update_rollout - @update_rollout = ::Gapic::Config::Method.new update_rollout_config - delete_rollout_config = parent_rpcs.delete_rollout if parent_rpcs.respond_to? :delete_rollout - @delete_rollout = ::Gapic::Config::Method.new delete_rollout_config - list_rollout_kinds_config = parent_rpcs.list_rollout_kinds if parent_rpcs.respond_to? :list_rollout_kinds - @list_rollout_kinds = ::Gapic::Config::Method.new list_rollout_kinds_config - get_rollout_kind_config = parent_rpcs.get_rollout_kind if parent_rpcs.respond_to? :get_rollout_kind - @get_rollout_kind = ::Gapic::Config::Method.new get_rollout_kind_config - create_rollout_kind_config = parent_rpcs.create_rollout_kind if parent_rpcs.respond_to? :create_rollout_kind - @create_rollout_kind = ::Gapic::Config::Method.new create_rollout_kind_config - update_rollout_kind_config = parent_rpcs.update_rollout_kind if parent_rpcs.respond_to? :update_rollout_kind - @update_rollout_kind = ::Gapic::Config::Method.new update_rollout_kind_config - delete_rollout_kind_config = parent_rpcs.delete_rollout_kind if parent_rpcs.respond_to? :delete_rollout_kind - @delete_rollout_kind = ::Gapic::Config::Method.new delete_rollout_kind_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb deleted file mode 100644 index b0d0e3b97106..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb +++ /dev/null @@ -1,697 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasRollouts - module Rest - ## - # REST service stub for the SaasRollouts service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the list_rollouts REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse] - # A result object deserialized from the server's reply - def list_rollouts request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_rollouts_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_rollouts", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # A result object deserialized from the server's reply - def get_rollout request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_rollout_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_rollout", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # A result object deserialized from the server's reply - def create_rollout request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_rollout_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_rollout", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # A result object deserialized from the server's reply - def update_rollout request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_rollout_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_rollout", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_rollout request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_rollout_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_rollout", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_rollout_kinds REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse] - # A result object deserialized from the server's reply - def list_rollout_kinds request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_rollout_kinds_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_rollout_kinds", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # A result object deserialized from the server's reply - def get_rollout_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_rollout_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_rollout_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # A result object deserialized from the server's reply - def create_rollout_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_rollout_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_rollout_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # A result object deserialized from the server's reply - def update_rollout_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_rollout_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_rollout_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_rollout_kind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_rollout_kind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_rollout_kind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_rollouts REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_rollouts_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/rollouts", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_rollout_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_rollout_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/rollouts", - body: "rollout", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_rollout_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{rollout.name}", - body: "rollout", - matches: [ - ["rollout.name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_rollout REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_rollout_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_rollout_kinds REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_rollout_kinds_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{parent}/rolloutKinds", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_rollout_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_rollout_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1beta1/{parent}/rolloutKinds", - body: "rollout_kind", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_rollout_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1beta1/{rollout_kind.name}", - body: "rollout_kind", - matches: [ - ["rollout_kind.name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_rollout_kind REST call - # - # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_rollout_kind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1beta1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb deleted file mode 100644 index 14648b82728e..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - VERSION = "0.0.1" - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb deleted file mode 100644 index 450776ac3fe5..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n>google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n\tBlueprint\x12\x17\n\x07package\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x13\n\x06\x65ngine\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xd5\x01\n\x0cUnitVariable\x12\x18\n\x08variable\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12Z\n\x04type\x18\x02 \x01(\x0e\x32\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.TypeB\x06\xe0\x41\x01\xe0\x41\x05\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x01\";\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xfb\x03\n\rUnitCondition\x12\\\n\x06status\x18\x01 \x01(\x0e\x32G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.StatusB\x03\xe0\x41\x02\x12X\n\x04type\x18\x02 \x01(\x0e\x32\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"o\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTYPE_READY\x10\x01\x12\x11\n\rTYPE_UPDATING\x10\x02\x12\x14\n\x10TYPE_PROVISIONED\x10\x03\x12\x18\n\x14TYPE_OPERATION_ERROR\x10\x04\"\xcc\x04\n\x16UnitOperationCondition\x12\x65\n\x06status\x18\x01 \x01(\x0e\x32P.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.StatusB\x03\xe0\x41\x02\x12\x61\n\x04type\x18\x02 \x01(\x0e\x32N.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.TypeB\x03\xe0\x41\x02\x12=\n\x14last_transition_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06reason\x18\x05 \x01(\tB\x03\xe0\x41\x02\"W\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x01\x12\x0f\n\x0bSTATUS_TRUE\x10\x02\x12\x10\n\x0cSTATUS_FALSE\x10\x03\"\xa4\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eTYPE_SCHEDULED\x10\x02\x12\x10\n\x0cTYPE_RUNNING\x10\x03\x12\x12\n\x0eTYPE_SUCCEEDED\x10\x04\x12\x12\n\x0eTYPE_CANCELLED\x10\x05\x12\x14\n\x10TYPE_APP_CREATED\x10\x06\x12\"\n\x1eTYPE_APP_COMPONENTS_REGISTERED\x10\x07\"3\n\tAggregate\x12\x12\n\x05group\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05\x63ount\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02*\x96\x01\n\x1aUnitOperationErrorCategory\x12-\n)UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED\x10\x00\x12\x12\n\x0eNOT_APPLICABLE\x10\x01\x12\t\n\x05\x46\x41TAL\x10\x02\x12\r\n\tRETRIABLE\x10\x03\x12\r\n\tIGNORABLE\x10\x04\x12\x0c\n\x08STANDARD\x10\x05\x42\xc7\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x0b\x43ommonProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - Blueprint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint").msgclass - UnitVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable").msgclass - UnitVariable::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type").enummodule - UnitCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition").msgclass - UnitCondition::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status").enummodule - UnitCondition::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type").enummodule - UnitOperationCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition").msgclass - UnitOperationCondition::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status").enummodule - UnitOperationCondition::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type").enummodule - Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate").msgclass - UnitOperationErrorCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory").enummodule - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb deleted file mode 100644 index 1b89f673a7dd..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb +++ /dev/null @@ -1,73 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/field_info_pb' -require 'google/api/resource_pb' -require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\nMgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a>google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1d\n\x08Location\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\x99\x05\n\x04Saas\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12S\n\tlocations\x18\x04 \x03(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationB\x03\xe0\x41\x01\x12Y\n\x06labels\x18\xa1Q \x03(\x0b\x32\x43.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.LabelsEntryB\x03\xe0\x41\x01\x12\x63\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32H.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:i\xea\x41\x66\n#saasservicemgmt.googleapis.com/Saas\x12\x33projects/{project}/locations/{location}/saas/{saas}*\x04saas2\x04saas\"\xb7\x05\n\x06Tenant\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12!\n\x11\x63onsumer_resource\x18\x02 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12<\n\x04saas\x18\x03 \x01(\tB.\xe0\x41\x02\xe0\x41\x05\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\x12[\n\x06labels\x18\xa1Q \x03(\x0b\x32\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.LabelsEntryB\x03\xe0\x41\x01\x12\x65\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32J.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:u\xea\x41r\n%saasservicemgmt.googleapis.com/Tenant\x12\x38projects/{project}/locations/{location}/tenants/{tenant}*\x07tenants2\x06tenant\"\x9f\x08\n\x08UnitKind\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x0f\x64\x65\x66\x61ult_release\x18\x02 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12[\n\x0c\x64\x65pendencies\x18\x04 \x03(\x0b\x32=.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyB\x06\xe0\x41\x01\xe0\x41\x05\x12h\n\x17input_variable_mappings\x18\x05 \x03(\x0b\x32\x42.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingB\x03\xe0\x41\x01\x12i\n\x18output_variable_mappings\x18\x06 \x03(\x0b\x32\x42.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingB\x03\xe0\x41\x01\x12<\n\x04saas\x18\x08 \x01(\tB.\xe0\x41\x02\xe0\x41\x05\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\x12]\n\x06labels\x18\xa1Q \x03(\x0b\x32G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.LabelsEntryB\x03\xe0\x41\x01\x12g\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32L.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n\'saasservicemgmt.googleapis.com/UnitKind\x12.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12<\n\x04unit\x18\x02 \x01(\tB.\xe0\x41\x02\xe0\x41\x05\xfa\x41%\n#saasservicemgmt.googleapis.com/Unit\x12S\n\x15parent_unit_operation\x18\x03 \x01(\tB4\xe0\x41\x01\xfa\x41.\n,saasservicemgmt.googleapis.com/UnitOperation\x12?\n\x07rollout\x18\x04 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Rollout\x12\x13\n\x06\x63\x61ncel\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12j\n\x05state\x18\x06 \x01(\x0e\x32S.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationStateB\x06\xe0\x41\x01\xe0\x41\x03\x12\x65\n\nconditions\x18\x07 \x03(\x0b\x32I.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionB\x06\xe0\x41\x01\xe0\x41\x03\x12R\n\x08schedule\x18\x0c \x01(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleB\x03\xe0\x41\x01\x12\x1c\n\x0c\x65ngine_state\x18\x0e \x01(\tB\x06\xe0\x41\x01\xe0\x41\x03\x12m\n\x0e\x65rror_category\x18\x0f \x01(\x0e\x32M.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategoryB\x06\xe0\x41\x01\xe0\x41\x03\x12\x62\n\x06labels\x18\xa1Q \x03(\x0b\x32L.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.LabelsEntryB\x03\xe0\x41\x01\x12l\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32Q.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x87\x02\n\x12UnitOperationState\x12 \n\x1cUNIT_OPERATION_STATE_UNKNOWN\x10\x00\x12 \n\x1cUNIT_OPERATION_STATE_PENDING\x10\x01\x12\"\n\x1eUNIT_OPERATION_STATE_SCHEDULED\x10\x02\x12 \n\x1cUNIT_OPERATION_STATE_RUNNING\x10\x04\x12\"\n\x1eUNIT_OPERATION_STATE_SUCCEEDED\x10\x05\x12\x1f\n\x1bUNIT_OPERATION_STATE_FAILED\x10\x06\x12\"\n\x1eUNIT_OPERATION_STATE_CANCELLED\x10\x07:\x99\x01\xea\x41\x95\x01\n,saasservicemgmt.googleapis.com/UnitOperation\x12\x46projects/{project}/locations/{location}/unitOperations/{unitOperation}*\x0eunitOperations2\runitOperationB\x15\n\x13unit_operation_type\"\xab\x01\n\tProvision\x12?\n\x07release\x18\x01 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12]\n\x0finput_variables\x18\x03 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x03\xe0\x41\x01\"\r\n\x0b\x44\x65provision\"\xa9\x01\n\x07Upgrade\x12?\n\x07release\x18\x01 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12]\n\x0finput_variables\x18\x02 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x03\xe0\x41\x01\"?\n\x08Schedule\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\x84\n\n\x07Release\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\tunit_kind\x18\x02 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\x12T\n\tblueprint\x18\x03 \x01(\x0b\x32<.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintB\x03\xe0\x41\x01\x12q\n\x14release_requirements\x18\x04 \x01(\x0b\x32N.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirementsB\x03\xe0\x41\x01\x12`\n\x0finput_variables\x18\x05 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x06\xe0\x41\x01\xe0\x41\x03\x12\x61\n\x10output_variables\x18\x06 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x06\xe0\x41\x01\xe0\x41\x03\x12\x65\n\x17input_variable_defaults\x18\x07 \x03(\x0b\x32?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\x03\xe0\x41\x01\x12\\\n\x06labels\x18\xa1Q \x03(\x0b\x32\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.LabelsEntryB\x03\xe0\x41\x01\x12\x66\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32K.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1ah\n\x13ReleaseRequirements\x12Q\n\x19upgradeable_from_releases\x18\x01 \x03(\tB.\xe0\x41\x01\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:z\xea\x41w\n&saasservicemgmt.googleapis.com/Release\x12:projects/{project}/locations/{location}/releases/{release}*\x08releases2\x07release\"\xde\x01\n\x0fVariableMapping\x12S\n\x04\x66rom\x18\x02 \x01(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingB\x03\xe0\x41\x01H\x00\x12O\n\x02to\x18\x03 \x01(\x0b\x32<.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingB\x03\xe0\x41\x01H\x00\x12\x15\n\x08variable\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x0e\n\x0cmapping_type\"D\n\x0b\x46romMapping\x12\x17\n\ndependency\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0foutput_variable\x18\x02 \x01(\tB\x03\xe0\x41\x02\"a\n\tToMapping\x12\x17\n\ndependency\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0einput_variable\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11ignore_for_lookup\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"g\n\nDependency\x12\x45\n\tunit_kind\x18\x01 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\x12\x12\n\x05\x61lias\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\xd9\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x1dSaasDeploymentsResourcesProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], - ["google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable", "google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - Location = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Location").msgclass - Saas = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas").msgclass - Tenant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant").msgclass - UnitKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind").msgclass - Unit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit").msgclass - Unit::MaintenanceSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings").msgclass - Unit::UnitState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState").enummodule - Unit::ManagementMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode").enummodule - Unit::SystemManagedState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState").enummodule - UnitDependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency").msgclass - UnitOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation").msgclass - UnitOperation::UnitOperationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState").enummodule - Provision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision").msgclass - Deprovision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision").msgclass - Upgrade = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade").msgclass - Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule").msgclass - Release = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Release").msgclass - Release::ReleaseRequirements = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements").msgclass - VariableMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping").msgclass - FromMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping").msgclass - ToMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping").msgclass - Dependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb deleted file mode 100644 index 5941cded8b40..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb +++ /dev/null @@ -1,89 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nKgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aMgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9c\x01\n\x0fListSaasRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Saas\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x8a\x01\n\x10ListSaasResponse\x12\x46\n\x04saas\x18\x8dR \x03(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"L\n\x0eGetSaasRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\"\xe2\x01\n\x11\x43reateSaasRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Saas\x12\x15\n\x07saas_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12K\n\x04saas\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xbf\x01\n\x11UpdateSaasRequest\x12K\n\x04saas\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8b\x01\n\x11\x44\x65leteSaasRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Saas\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xa1\x01\n\x12ListTenantsRequest\x12>\n\x06parent\x18\x96N \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%saasservicemgmt.googleapis.com/Tenant\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x92\x01\n\x13ListTenantsResponse\x12K\n\x07tenants\x18\x8dR \x03(\x0b\x32\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"P\n\x10GetTenantRequest\x12<\n\x04name\x18\x91N \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%saasservicemgmt.googleapis.com/Tenant\"\xec\x01\n\x13\x43reateTenantRequest\x12>\n\x06parent\x18\x96N \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%saasservicemgmt.googleapis.com/Tenant\x12\x17\n\ttenant_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12O\n\x06tenant\x18\x88R \x01(\x0b\x32\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xc5\x01\n\x13UpdateTenantRequest\x12O\n\x06tenant\x18\x88R \x01(\x0b\x32\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8f\x01\n\x13\x44\x65leteTenantRequest\x12<\n\x04name\x18\x91N \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%saasservicemgmt.googleapis.com/Tenant\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xa5\x01\n\x14ListUnitKindsRequest\x12@\n\x06parent\x18\x96N \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'saasservicemgmt.googleapis.com/UnitKind\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x99\x01\n\x15ListUnitKindsResponse\x12P\n\nunit_kinds\x18\x8dR \x03(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"T\n\x12GetUnitKindRequest\x12>\n\x04name\x18\x91N \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\"\xf8\x01\n\x15\x43reateUnitKindRequest\x12@\n\x06parent\x18\x96N \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'saasservicemgmt.googleapis.com/UnitKind\x12\x1a\n\x0cunit_kind_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12T\n\tunit_kind\x18\x88R \x01(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xcc\x01\n\x15UpdateUnitKindRequest\x12T\n\tunit_kind\x18\x88R \x01(\x0b\x32;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x93\x01\n\x15\x44\x65leteUnitKindRequest\x12>\n\x04name\x18\x91N \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'saasservicemgmt.googleapis.com/UnitKind\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\x9d\x01\n\x10ListUnitsRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Unit\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x8c\x01\n\x11ListUnitsResponse\x12G\n\x05units\x18\x8dR \x03(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"L\n\x0eGetUnitRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Unit\"\xe2\x01\n\x11\x43reateUnitRequest\x12<\n\x06parent\x18\x96N \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#saasservicemgmt.googleapis.com/Unit\x12\x15\n\x07unit_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12K\n\x04unit\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xbf\x01\n\x11UpdateUnitRequest\x12K\n\x04unit\x18\x88R \x01(\x0b\x32\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8b\x01\n\x11\x44\x65leteUnitRequest\x12:\n\x04name\x18\x91N \x01(\tB+\xe0\x41\x02\xfa\x41%\n#saasservicemgmt.googleapis.com/Unit\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xaf\x01\n\x19ListUnitOperationsRequest\x12\x45\n\x06parent\x18\x96N \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,saasservicemgmt.googleapis.com/UnitOperation\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xa8\x01\n\x1aListUnitOperationsResponse\x12Z\n\x0funit_operations\x18\x8dR \x03(\x0b\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"^\n\x17GetUnitOperationRequest\x12\x43\n\x04name\x18\x91N \x01(\tB4\xe0\x41\x02\xfa\x41.\n,saasservicemgmt.googleapis.com/UnitOperation\"\x91\x02\n\x1a\x43reateUnitOperationRequest\x12\x45\n\x06parent\x18\x96N \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,saasservicemgmt.googleapis.com/UnitOperation\x12\x1f\n\x11unit_operation_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12^\n\x0eunit_operation\x18\x88R \x01(\x0b\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xdb\x01\n\x1aUpdateUnitOperationRequest\x12^\n\x0eunit_operation\x18\x88R \x01(\x0b\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x9d\x01\n\x1a\x44\x65leteUnitOperationRequest\x12\x43\n\x04name\x18\x91N \x01(\tB4\xe0\x41\x02\xfa\x41.\n,saasservicemgmt.googleapis.com/UnitOperation\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xa3\x01\n\x13ListReleasesRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Release\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x95\x01\n\x14ListReleasesResponse\x12M\n\x08releases\x18\x8dR \x03(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"R\n\x11GetReleaseRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\"\xf1\x01\n\x14\x43reateReleaseRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Release\x12\x18\n\nrelease_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12Q\n\x07release\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xc8\x01\n\x14UpdateReleaseRequest\x12Q\n\x07release\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x91\x01\n\x14\x44\x65leteReleaseRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Release\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t2\x9d\x35\n\x0fSaasDeployments\x12\xd3\x01\n\x08ListSaas\x12\x42.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest\x1a\x43.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{parent=projects/*/locations/*}/saas\x12\xc3\x01\n\x07GetSaas\x12\x41.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest\x1a\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/saas/*}\x12\xde\x01\n\nCreateSaas\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest\x1a\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\"Q\xda\x41\x13parent,saas,saas_id\x82\xd3\xe4\x93\x02\x35\"-/v1beta1/{parent=projects/*/locations/*}/saas:\x04saas\x12\xe0\x01\n\nUpdateSaas\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest\x1a\x37.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\"S\xda\x41\x10saas,update_mask\x82\xd3\xe4\x93\x02:22/v1beta1/{saas.name=projects/*/locations/*/saas/*}:\x04saas\x12\xa8\x01\n\nDeleteSaas\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1beta1/{name=projects/*/locations/*/saas/*}\x12\xdf\x01\n\x0bListTenants\x12\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest\x1a\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1beta1/{parent=projects/*/locations/*}/tenants\x12\xcc\x01\n\tGetTenant\x12\x43.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest\x1a\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1beta1/{name=projects/*/locations/*/tenants/*}\x12\xed\x01\n\x0c\x43reateTenant\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest\x1a\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\"Z\xda\x41\x17parent,tenant,tenant_id\x82\xd3\xe4\x93\x02:\"0/v1beta1/{parent=projects/*/locations/*}/tenants:\x06tenant\x12\xef\x01\n\x0cUpdateTenant\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest\x1a\x39.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\"\\\xda\x41\x12tenant,update_mask\x82\xd3\xe4\x93\x02\x41\x32\x37/v1beta1/{tenant.name=projects/*/locations/*/tenants/*}:\x06tenant\x12\xaf\x01\n\x0c\x44\x65leteTenant\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1beta1/{name=projects/*/locations/*/tenants/*}\x12\xe7\x01\n\rListUnitKinds\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest\x1aH.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{parent=projects/*/locations/*}/unitKinds\x12\xd4\x01\n\x0bGetUnitKind\x12\x45.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest\x1a;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1beta1/{name=projects/*/locations/*/unitKinds/*}\x12\xfe\x01\n\x0e\x43reateUnitKind\x12H.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest\x1a;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\"e\xda\x41\x1dparent,unit_kind,unit_kind_id\x82\xd3\xe4\x93\x02?\"2/v1beta1/{parent=projects/*/locations/*}/unitKinds:\tunit_kind\x12\x80\x02\n\x0eUpdateUnitKind\x12H.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest\x1a;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\"g\xda\x41\x15unit_kind,update_mask\x82\xd3\xe4\x93\x02I2.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12`\n\x06labels\x18\xa1Q \x03(\x0b\x32J.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.LabelsEntryB\x03\xe0\x41\x01\x12j\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32O.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x0b\x63reate_time\x18\xbfP \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0bupdate_time\x18\xc0P \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x01\n\x16UpdateUnitKindStrategy\x12)\n%UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED\x10\x00\x12&\n\"UPDATE_UNIT_KIND_STRATEGY_ON_START\x10\x01\x12#\n\x1fUPDATE_UNIT_KIND_STRATEGY_NEVER\x10\x02:\x93\x01\xea\x41\x8f\x01\n*saasservicemgmt.googleapis.com/RolloutKind\x12\x46projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}*\x0crolloutKinds2\x0brolloutKindB\x0f\n\r_error_budget\"J\n\x0b\x45rrorBudget\x12\x1a\n\rallowed_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x61llowed_percentage\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"n\n\x0cRolloutStats\x12^\n\x13operations_by_state\x18\x02 \x03(\x0b\x32<.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateB\x03\xe0\x41\x03\"\xad\x02\n\x0eRolloutControl\x12s\n\nrun_params\x18\x02 \x01(\x0b\x32X.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParamsB\x03\xe0\x41\x01H\x00\x12U\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32@.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutActionB\x03\xe0\x41\x02\x1a>\n\x16RunRolloutActionParams\x12$\n\x17retry_failed_operations\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x42\x0f\n\raction_params*|\n\rRolloutAction\x12\x1e\n\x1aROLLOUT_ACTION_UNSPECIFIED\x10\x00\x12\x16\n\x12ROLLOUT_ACTION_RUN\x10\x01\x12\x18\n\x14ROLLOUT_ACTION_PAUSE\x10\x02\x12\x19\n\x15ROLLOUT_ACTION_CANCEL\x10\x03\x42\xd6\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x1aSaasRolloutsResourcesProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], - ["google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate", "google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout").msgclass - Rollout::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState").enummodule - RolloutKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind").msgclass - RolloutKind::UpdateUnitKindStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy").enummodule - ErrorBudget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget").msgclass - RolloutStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats").msgclass - RolloutControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl").msgclass - RolloutControl::RunRolloutActionParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams").msgclass - RolloutAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction").enummodule - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb deleted file mode 100644 index 2ac0ad01734b..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb +++ /dev/null @@ -1,65 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' - - -descriptor_data = "\nHgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto\x12\x31google.cloud.saasplatform.saasservicemgmt.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aJgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa3\x01\n\x13ListRolloutsRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Rollout\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\x95\x01\n\x14ListRolloutsResponse\x12M\n\x08rollouts\x18\x8dR \x03(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"R\n\x11GetRolloutRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Rollout\"\xf1\x01\n\x14\x43reateRolloutRequest\x12?\n\x06parent\x18\x96N \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&saasservicemgmt.googleapis.com/Rollout\x12\x18\n\nrollout_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12Q\n\x07rollout\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xc8\x01\n\x14UpdateRolloutRequest\x12Q\n\x07rollout\x18\x88R \x01(\x0b\x32:.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x91\x01\n\x14\x44\x65leteRolloutRequest\x12=\n\x04name\x18\x91N \x01(\tB.\xe0\x41\x02\xfa\x41(\n&saasservicemgmt.googleapis.com/Rollout\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xab\x01\n\x17ListRolloutKindsRequest\x12\x43\n\x06parent\x18\x96N \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*saasservicemgmt.googleapis.com/RolloutKind\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xa2\x01\n\x18ListRolloutKindsResponse\x12V\n\rrollout_kinds\x18\x8dR \x03(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"Z\n\x15GetRolloutKindRequest\x12\x41\n\x04name\x18\x91N \x01(\tB2\xe0\x41\x02\xfa\x41,\n*saasservicemgmt.googleapis.com/RolloutKind\"\x87\x02\n\x18\x43reateRolloutKindRequest\x12\x43\n\x06parent\x18\x96N \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*saasservicemgmt.googleapis.com/RolloutKind\x12\x1d\n\x0frollout_kind_id\x18\x87R \x01(\tB\x03\xe0\x41\x02\x12Z\n\x0crollout_kind\x18\x88R \x01(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\"\xd5\x01\n\x18UpdateRolloutKindRequest\x12Z\n\x0crollout_kind\x18\x88R \x01(\x0b\x32>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindB\x03\xe0\x41\x02\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t\x12\x30\n\x0bupdate_mask\x18\x90R \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x99\x01\n\x18\x44\x65leteRolloutKindRequest\x12\x41\n\x04name\x18\x91N \x01(\tB2\xe0\x41\x02\xfa\x41,\n*saasservicemgmt.googleapis.com/RolloutKind\x12\r\n\x04\x65tag\x18\xdaO \x01(\t\x12\x16\n\rvalidate_only\x18\x85R \x01(\x08\x12\x13\n\nrequest_id\x18\x86R \x01(\t2\x88\x13\n\x0cSaasRollouts\x12\xe3\x01\n\x0cListRollouts\x12\x46.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest\x1aG.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse\"B\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/locations/*}/rollouts\x12\xd0\x01\n\nGetRollout\x12\x44.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest\x1a:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/locations/*/rollouts/*}\x12\xf4\x01\n\rCreateRollout\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest\x1a:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\"^\xda\x41\x19parent,rollout,rollout_id\x82\xd3\xe4\x93\x02<\"1/v1beta1/{parent=projects/*/locations/*}/rollouts:\x07rollout\x12\xf6\x01\n\rUpdateRollout\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest\x1a:.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout\"`\xda\x41\x13rollout,update_mask\x82\xd3\xe4\x93\x02\x44\x32\x39/v1beta1/{rollout.name=projects/*/locations/*/rollouts/*}:\x07rollout\x12\xb2\x01\n\rDeleteRollout\x12G.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest\x1a\x16.google.protobuf.Empty\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33*1/v1beta1/{name=projects/*/locations/*/rollouts/*}\x12\xf3\x01\n\x10ListRolloutKinds\x12J.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest\x1aK.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{parent=projects/*/locations/*}/rolloutKinds\x12\xe0\x01\n\x0eGetRolloutKind\x12H.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest\x1a>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}\x12\x93\x02\n\x11\x43reateRolloutKind\x12K.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest\x1a>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\"q\xda\x41#parent,rollout_kind,rollout_kind_id\x82\xd3\xe4\x93\x02\x45\"5/v1beta1/{parent=projects/*/locations/*}/rolloutKinds:\x0crollout_kind\x12\x95\x02\n\x11UpdateRolloutKind\x12K.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest\x1a>.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind\"s\xda\x41\x18rollout_kind,update_mask\x82\xd3\xe4\x93\x02R2B/v1beta1/{rollout_kind.name=projects/*/locations/*/rolloutKinds/*}:\x0crollout_kind\x12\xbe\x01\n\x11\x44\x65leteRolloutKind\x12K.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}\x1aR\xca\x41\x1esaasservicemgmt.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd4\x02\n5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\x18SaasRolloutsServiceProtoP\x01Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb\xaa\x02\x31Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1\xca\x02\x31Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1\xea\x02\x35Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\x06proto3" - -pool = Google::Protobuf::DescriptorPool.generated_pool - -begin - pool.add_serialized_file(descriptor_data) -rescue TypeError - # Compatibility code: will be removed in the next major version. - require 'google/protobuf/descriptor_pb' - parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) - parsed.clear_dependency - serialized = parsed.class.encode(parsed) - file = pool.add_serialized_file(serialized) - warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" - imports = [ - ["google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout", "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto"], - ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ] - imports.each do |type_name, expected_filename| - import_file = pool.lookup(type_name).file_descriptor - if import_file.name != expected_filename - warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" - end - end - warn "Each proto file must use a consistent fully-qualified name." - warn "This will become an error in the next major version." -end - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - ListRolloutsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest").msgclass - ListRolloutsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse").msgclass - GetRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest").msgclass - CreateRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest").msgclass - UpdateRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest").msgclass - DeleteRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest").msgclass - ListRolloutKindsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest").msgclass - ListRolloutKindsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse").msgclass - GetRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest").msgclass - CreateRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest").msgclass - UpdateRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest").msgclass - DeleteRolloutKindRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest").msgclass - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb deleted file mode 100644 index 48e36153293b..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb +++ /dev/null @@ -1,65 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto for package 'Google.Cloud.SaasPlatform.SaasServiceMgmt.V1beta1' -# Original file comments: -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb' - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - module SaasRollouts - # Manages the rollout of SaaS services. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts' - - # Retrieve a collection of rollouts. - rpc :ListRollouts, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse - # Retrieve a single rollout. - rpc :GetRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout - # Create a new rollout. - rpc :CreateRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout - # Update a single rollout. - rpc :UpdateRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout - # Delete a single rollout. - rpc :DeleteRollout, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, ::Google::Protobuf::Empty - # Retrieve a collection of rollout kinds. - rpc :ListRolloutKinds, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse - # Retrieve a single rollout kind. - rpc :GetRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind - # Create a new rollout kind. - rpc :CreateRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind - # Update a single rollout kind. - rpc :UpdateRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind - # Delete a single rollout kind. - rpc :DeleteRolloutKind, ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, ::Google::Protobuf::Empty - end - - Stub = Service.rpc_stub_class - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md deleted file mode 100644 index 10d10d09fe56..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# SaaS Runtime V1BETA1 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb deleted file mode 100644 index d59ba51a5612..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/client.rb +++ /dev/null @@ -1,473 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb deleted file mode 100644 index 0f5acf0a5538..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/field_info.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Rich semantic information of an API field beyond basic typing. - # @!attribute [rw] format - # @return [::Google::Api::FieldInfo::Format] - # The standard format of a field value. This does not explicitly configure - # any API consumer, just documents the API's format for the field it is - # applied to. - # @!attribute [rw] referenced_types - # @return [::Array<::Google::Api::TypeReference>] - # The type(s) that the annotated, generic field may represent. - # - # Currently, this must only be used on fields of type `google.protobuf.Any`. - # Supporting other generic types may be considered in the future. - class FieldInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The standard format of a field value. The supported formats are all backed - # by either an RFC defined by the IETF or a Google-defined AIP. - module Format - # Default, unspecified value. - FORMAT_UNSPECIFIED = 0 - - # Universally Unique Identifier, version 4, value as defined by - # https://datatracker.ietf.org/doc/html/rfc4122. The value may be - # normalized to entirely lowercase letters. For example, the value - # `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to - # `f47ac10b-58cc-0372-8567-0e02b2c3d479`. - UUID4 = 1 - - # Internet Protocol v4 value as defined by [RFC - # 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be - # condensed, with leading zeros in each octet stripped. For example, - # `001.022.233.040` would be condensed to `1.22.233.40`. - IPV4 = 2 - - # Internet Protocol v6 value as defined by [RFC - # 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be - # normalized to entirely lowercase letters with zeros compressed, following - # [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, - # the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. - IPV6 = 3 - - # An IP address in either v4 or v6 format as described by the individual - # values defined herein. See the comments on the IPV4 and IPV6 types for - # allowed normalizations of each. - IPV4_OR_IPV6 = 4 - end - end - - # A reference to a message type, for use in {::Google::Api::FieldInfo FieldInfo}. - # @!attribute [rw] type_name - # @return [::String] - # The name of the type that the annotated, generic field may represent. - # If the type is in the same protobuf package, the value can be the simple - # message name e.g., `"MyMessage"`. Otherwise, the value must be the - # fully-qualified message name e.g., `"google.library.v1.Book"`. - # - # If the type(s) are unknown to the service (e.g. the field accepts generic - # user input), use the wildcard `"*"` to denote this behavior. - # - # See [AIP-202](https://google.aip.dev/202#type-references) for more details. - class TypeReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb deleted file mode 100644 index 6a0da327d9a7..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb +++ /dev/null @@ -1,237 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - # Blueprints are OCI Images that contain all of the artifacts needed to - # provision a unit. Metadata such as, type of the engine used to actuate the - # blueprint (e.g. terraform, helm etc) and version will come from the image - # manifest. If the hostname is omitted, it will be assumed to be the regional - # path to Artifact Registry (eg. us-east1-docker.pkg.dev). - # @!attribute [rw] package - # @return [::String] - # Optional. Immutable. URI to a blueprint used by the Unit (required unless - # unitKind or release is set). - # @!attribute [r] engine - # @return [::String] - # Output only. Type of the engine used to actuate the blueprint. e.g. - # terraform, helm etc. - # @!attribute [r] version - # @return [::String] - # Output only. Version metadata if present on the blueprint. - class Blueprint - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UnitVariable describes a parameter for a Unit. - # @!attribute [rw] variable - # @return [::String] - # Required. Immutable. Name of the variable from actuation configs. - # @!attribute [rw] type - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable::Type] - # Optional. Immutable. Name of a supported variable type. Supported types are - # string, int, bool. - # @!attribute [rw] value - # @return [::String] - # Optional. String encoded value for the variable. - class UnitVariable - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Enumeration of variable types. - module Type - # Variable type is unspecified. - TYPE_UNSPECIFIED = 0 - - # Variable type is string. - STRING = 1 - - # Variable type is int. - INT = 2 - - # Variable type is bool. - BOOL = 3 - end - end - - # UnitCondition describes the status of an Unit. UnitCondition is individual - # components that contribute to an overall state. - # @!attribute [rw] status - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitCondition::Status] - # Required. Status of the condition. - # @!attribute [rw] type - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitCondition::Type] - # Required. Type of the condition. - # @!attribute [rw] last_transition_time - # @return [::Google::Protobuf::Timestamp] - # Required. Last time the condition transited from one status to another. - # @!attribute [rw] message - # @return [::String] - # Required. Human readable message indicating details about the last - # transition. - # @!attribute [rw] reason - # @return [::String] - # Required. Brief reason for the condition's last transition. - class UnitCondition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Enumeration of condition statuses. - module Status - # Condition status is unspecified. - STATUS_UNSPECIFIED = 0 - - # Condition is unknown. - STATUS_UNKNOWN = 1 - - # Condition is true. - STATUS_TRUE = 2 - - # Condition is false. - STATUS_FALSE = 3 - end - - # Enumeration of condition types. - module Type - # Condition type is unspecified. - TYPE_UNSPECIFIED = 0 - - # Condition type is ready. - TYPE_READY = 1 - - # Condition type is updating. - TYPE_UPDATING = 2 - - # Condition type is provisioned. - TYPE_PROVISIONED = 3 - - # Condition type is operationError. - # True when the last unit operation fails with a non-ignorable error. - TYPE_OPERATION_ERROR = 4 - end - end - - # UnitOperationCondition describes the status of an Unit Operation. - # UnitOperationCondition is individual components that contribute to an overall - # state. - # @!attribute [rw] status - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition::Status] - # Required. Status of the condition. - # @!attribute [rw] type - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition::Type] - # Required. Type of the condition. - # @!attribute [rw] last_transition_time - # @return [::Google::Protobuf::Timestamp] - # Required. Last time the condition transited from one status to another. - # @!attribute [rw] message - # @return [::String] - # Required. Human readable message indicating details about the last - # transition. - # @!attribute [rw] reason - # @return [::String] - # Required. Brief reason for the condition's last transition. - class UnitOperationCondition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Enumeration of condition statuses. - module Status - # Condition status is unspecified. - STATUS_UNSPECIFIED = 0 - - # Condition is unknown. - STATUS_UNKNOWN = 1 - - # Condition is true. - STATUS_TRUE = 2 - - # Condition is false. - STATUS_FALSE = 3 - end - - # Enumeration of condition types. - module Type - # Condition type is unspecified. - TYPE_UNSPECIFIED = 0 - - # Condition type is scheduled. - TYPE_SCHEDULED = 2 - - # Condition type is running. - TYPE_RUNNING = 3 - - # Condition type is succeeded. - TYPE_SUCCEEDED = 4 - - # Condition type is cancelled. - TYPE_CANCELLED = 5 - - # Indicates if AppHub app has been created. - TYPE_APP_CREATED = 6 - - # Indicates if services and workloads have been registered with AppHub. - TYPE_APP_COMPONENTS_REGISTERED = 7 - end - end - - # Represents the aggregation of a set of population of like records by a - # certain group. For example, a collection of unit counts can be aggregated and - # grouped by their state. - # @!attribute [rw] group - # @return [::String] - # Required. Group by which to aggregate. - # @!attribute [rw] count - # @return [::Integer] - # Required. Number of records in the group. - class Aggregate - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UnitOperationErrorCategory describes the error category of the unit - # operation. - module UnitOperationErrorCategory - # Unit operation error category is unspecified - UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED = 0 - - # Unit operation error category is not applicable, or it is not an error - NOT_APPLICABLE = 1 - - # Unit operation error category is fatal - FATAL = 2 - - # Unit operation error category is retriable - RETRIABLE = 3 - - # Unit operation error category is ignorable - IGNORABLE = 4 - - # Unit operation error category is standard, counts towards Rollout error - # budget - STANDARD = 5 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb deleted file mode 100644 index 77d6b2a09c64..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb +++ /dev/null @@ -1,837 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - # Location information that the service is available in. - # @!attribute [rw] name - # @return [::String] - # Optional. Name of location. - class Location - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Saas is a representation of a SaaS service managed by the Producer. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/saas/\\{saas}" - # @!attribute [rw] locations - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Location>] - # Optional. List of locations that the service is available in. Rollout - # refers to the list to generate a rollout plan. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class Saas - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Tenant represents the service producer side of an instance of the - # service created based on a request from a consumer. In a typical scenario a - # Tenant has a one-to-one mapping with a resource given out to a service - # consumer. - # - # Example: - # - # tenant: - # name: "projects/svc1/locations/loc/tenants/inst-068afff8" - # consumer_resource: "projects/gshoe/locations/loc/shoes/black-shoe" - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/tenants/\\{tenant}" - # @!attribute [rw] consumer_resource - # @return [::String] - # Optional. Immutable. A reference to the consumer resource this SaaS Tenant - # is representing. - # - # The relationship with a consumer resource can be used by SaaS Runtime for - # retrieving consumer-defined settings and policies such as maintenance - # policies (using Unified Maintenance Policy API). - # @!attribute [rw] saas - # @return [::String] - # Required. Immutable. A reference to the Saas that defines the product - # (managed service) that the producer wants to manage with SaaS Runtime. Part - # of the SaaS Runtime common data model. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class Tenant - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Definition of a Unit. Units belonging to the same UnitKind are managed - # together; for example they follow the same release model (blueprints, - # versions etc.) and are typically rolled out together. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/unitKinds/\\{unitKind}" - # @!attribute [rw] default_release - # @return [::String] - # Optional. A reference to the Release object to use as default for creating - # new units of this UnitKind (optional). - # - # If not specified, a new unit must explicitly reference which release to use - # for its creation. - # @!attribute [rw] dependencies - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Dependency>] - # Optional. Immutable. List of other unit kinds that this release will depend - # on. Dependencies will be automatically provisioned if not found. - # Maximum 10. - # @!attribute [rw] input_variable_mappings - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VariableMapping>] - # Optional. List of inputVariables for this release that will either be - # retrieved from a dependency’s outputVariables, or will be passed on to a - # dependency’s inputVariables. Maximum 100. - # @!attribute [rw] output_variable_mappings - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VariableMapping>] - # Optional. List of outputVariables for this unit kind will be passed to this - # unit's outputVariables. Maximum 100. - # @!attribute [rw] saas - # @return [::String] - # Required. Immutable. A reference to the Saas that defines the product - # (managed service) that the producer wants to manage with SaaS Runtime. Part - # of the SaaS Runtime common data model. Immutable once set. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class UnitKind - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A unit of deployment that has its lifecycle via a CRUD API using an actuation - # engine under the hood (e.g. based on Terraform, Helm or a custom - # implementation provided by a service producer). A building block of a SaaS - # Tenant. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/units/\\{unit}" - # @!attribute [rw] unit_kind - # @return [::String] - # Optional. Reference to the UnitKind this Unit belongs to. Immutable once - # set. - # @!attribute [r] release - # @return [::String] - # Optional. Output only. The current Release object for this Unit. - # @!attribute [rw] tenant - # @return [::String] - # Optional. Reference to the Saas Tenant resource this unit belongs to. This - # for example informs the maintenance policies to use for scheduling future - # updates on a unit. (optional and immutable once created) - # @!attribute [r] ongoing_operations - # @return [::Array<::String>] - # Optional. Output only. List of concurrent UnitOperations that are operating - # on this Unit. - # @!attribute [r] pending_operations - # @return [::Array<::String>] - # Optional. Output only. List of pending (wait to be executed) UnitOperations - # for this unit. - # @!attribute [r] scheduled_operations - # @return [::Array<::String>] - # Optional. Output only. List of scheduled UnitOperations for this unit. - # @!attribute [r] dependents - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitDependency>] - # Optional. Output only. List of Units that depend on this unit. Unit can - # only be deprovisioned if this list is empty. Maximum 1000. - # @!attribute [r] dependencies - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitDependency>] - # Optional. Output only. Set of dependencies for this unit. Maximum 10. - # @!attribute [r] input_variables - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] - # Optional. Output only. Indicates the current input variables deployed by - # the unit - # @!attribute [r] output_variables - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] - # Optional. Output only. Set of key/value pairs corresponding to output - # variables from execution of actuation templates. The variables are declared - # in actuation configs (e.g in helm chart or terraform) and the values are - # fetched and returned by the actuation engine upon completion of execution. - # @!attribute [rw] maintenance - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::MaintenanceSettings] - # Optional. Captures requested directives for performing future maintenance - # on the unit. This includes a request for the unit to skip maintenance for a - # period of time and remain pinned to its current release as well as controls - # for postponing maintenance scheduled in future. - # @!attribute [r] state - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::UnitState] - # Optional. Output only. Current lifecycle state of the resource (e.g. if - # it's being created or ready to use). - # @!attribute [r] conditions - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitCondition>] - # Optional. Output only. A set of conditions which indicate the various - # conditions this resource can have. - # @!attribute [rw] management_mode - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::ManagementMode] - # Optional. Immutable. Indicates whether the Unit life cycle is controlled - # by the user or by the system. - # Immutable once created. - # @!attribute [r] system_managed_state - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit::SystemManagedState] - # Optional. Output only. Indicates the system managed state of the unit. - # @!attribute [r] system_cleanup_at - # @return [::Google::Protobuf::Timestamp] - # Optional. Output only. If set, indicates the time when the system will - # start removing the unit. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class Unit - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Captures requested directives for performing future maintenance on the - # unit. This includes a request for the unit to skip maintenance for a period - # of time and remain pinned to its current release as well as controls for - # postponing maintenance scheduled in future. - # @!attribute [rw] pinned_until_time - # @return [::Google::Protobuf::Timestamp] - # Optional. If present, it fixes the release on the unit until the given - # time; i.e. changes to the release field will be rejected. Rollouts should - # and will also respect this by not requesting an upgrade in the first - # place. - class MaintenanceSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UnitState annotates what is the current state of the unit itself. - module UnitState - # Unspecified state. - UNIT_STATE_UNSPECIFIED = 0 - - # Unit is not provisioned. - UNIT_STATE_NOT_PROVISIONED = 1 - - # Unit is being provisioned. - UNIT_STATE_PROVISIONING = 2 - - # Unit is being updated. This is typically when a unit is being upgraded to - # a new release or some of the input variables on the Unit is being - # changed. Certain kinds of updates may cause the Unit to become unusable - # while the update is in progress. - UNIT_STATE_UPDATING = 3 - - # Unit is being deleted. - UNIT_STATE_DEPROVISIONING = 4 - - # Unit has been provisioned and is ready for use - UNIT_STATE_READY = 5 - - # Unit has error, when it is not ready and some error operation - UNIT_STATE_ERROR = 6 - end - - # ManagementMode describes who is responsible for the management of the unit. - module ManagementMode - MANAGEMENT_MODE_UNSPECIFIED = 0 - - # Unit's lifecycle is managed by the user. - MANAGEMENT_MODE_USER = 1 - - # The system will decide when to deprovision and delete the unit. - # User still can deprovision or delete the unit manually. - MANAGEMENT_MODE_SYSTEM = 2 - end - - module SystemManagedState - SYSTEM_MANAGED_STATE_UNSPECIFIED = 0 - - # Unit has dependents attached. - SYSTEM_MANAGED_STATE_ACTIVE = 1 - - # Unit has no dependencies attached, but attachment is allowed. - SYSTEM_MANAGED_STATE_INACTIVE = 2 - - # Unit has no dependencies attached, and attachment is not allowed. - SYSTEM_MANAGED_STATE_DECOMMISSIONED = 3 - end - end - - # Set of dependencies for this unit. Maximum 10. - # @!attribute [r] alias - # @return [::String] - # Output only. Alias for the name of the dependency. - # @!attribute [r] unit - # @return [::String] - # Output only. A reference to the Unit object. - class UnitDependency - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UnitOperation encapsulates the intent of changing/interacting with the - # service component represented by the specific Unit. Multiple UnitOperations - # can be created (requested) and scheduled in the future, however only one will - # be allowed to execute at a time (that can change in the future for - # non-mutating operations). - # - # UnitOperations allow different actors interacting with the same - # unit to focus only on the change they have requested. - # - # This is a base object that contains the common fields in all unit operations. - # Next: 19 - # @!attribute [rw] provision - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Provision] - # Note: The following fields are mutually exclusive: `provision`, `upgrade`, `deprovision`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] upgrade - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Upgrade] - # Note: The following fields are mutually exclusive: `upgrade`, `provision`, `deprovision`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] deprovision - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Deprovision] - # Note: The following fields are mutually exclusive: `deprovision`, `provision`, `upgrade`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/unitOperations/\\{unitOperation}" - # @!attribute [rw] unit - # @return [::String] - # Required. Immutable. The Unit a given UnitOperation will act upon. - # @!attribute [rw] parent_unit_operation - # @return [::String] - # Optional. Reference to parent resource: UnitOperation. If an operation - # needs to create other operations as part of its workflow, each of the child - # operations should have this field set to the parent. This can be used for - # tracing. (Optional) - # @!attribute [rw] rollout - # @return [::String] - # Optional. Specifies which rollout created this Unit Operation. This cannot - # be modified and is used for filtering purposes only. If a dependent unit - # and unit operation are created as part of another unit operation, they will - # use the same rolloutId. - # @!attribute [rw] cancel - # @return [::Boolean] - # Optional. When true, attempt to cancel the operation. Cancellation may fail - # if the operation is already executing. (Optional) - # @!attribute [r] state - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation::UnitOperationState] - # Optional. Output only. UnitOperationState describes the current state of - # the unit operation. - # @!attribute [r] conditions - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationCondition>] - # Optional. Output only. A set of conditions which indicate the various - # conditions this resource can have. - # @!attribute [rw] schedule - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Schedule] - # Optional. When to schedule this operation. - # @!attribute [r] engine_state - # @return [::String] - # Optional. Output only. The engine state for on-going - # deployment engine operation(s). - # This field is opaque for external usage. - # @!attribute [r] error_category - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperationErrorCategory] - # Optional. Output only. UnitOperationErrorCategory describe the error - # category. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class UnitOperation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # UnitOperationState describes the current state of the unit operation. - module UnitOperationState - UNIT_OPERATION_STATE_UNKNOWN = 0 - - # Unit operation is accepted but not ready to run. - UNIT_OPERATION_STATE_PENDING = 1 - - # Unit operation is accepted and scheduled. - UNIT_OPERATION_STATE_SCHEDULED = 2 - - # Unit operation is running. - UNIT_OPERATION_STATE_RUNNING = 4 - - # Unit operation has completed successfully. - UNIT_OPERATION_STATE_SUCCEEDED = 5 - - # Unit operation has failed. - UNIT_OPERATION_STATE_FAILED = 6 - - # Unit operation was cancelled. - UNIT_OPERATION_STATE_CANCELLED = 7 - end - end - - # Provision is the unit operation that provision the underlying resources - # represented by a Unit. Can only execute if the Unit is not currently - # provisioned. - # @!attribute [rw] release - # @return [::String] - # Optional. Reference to the Release object to use for the Unit. (optional). - # @!attribute [rw] input_variables - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] - # Optional. Set of input variables. Maximum 100. (optional) - class Provision - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Deprovision is the unit operation that deprovision the underlying - # resources represented by a Unit. Can only execute if the Unit is currently - # provisioned. - class Deprovision - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Upgrade is the unit operation that upgrades a provisioned unit, which may - # also include the underlying resources represented by a Unit. Can only execute - # if the Unit is currently provisioned. - # @!attribute [rw] release - # @return [::String] - # Optional. Reference to the Release object to use for the Unit. (optional). - # @!attribute [rw] input_variables - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] - # Optional. Set of input variables. Maximum 100. (optional) - class Upgrade - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A time specification to schedule the maintenance. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Start of operation. If not set, will be set to the start of the - # next window. (optional) - class Schedule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A new version to be propagated and deployed to units. This includes pointers - # to packaged blueprints for actuation (e.g Helm or Terraform configuration - # packages) via artifact registry. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/releases/\\{release}" - # @!attribute [rw] unit_kind - # @return [::String] - # Required. Immutable. Reference to the UnitKind this Release corresponds to - # (required and immutable once created). - # @!attribute [rw] blueprint - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Blueprint] - # Optional. Blueprints are OCI Images that contain all of the artifacts - # needed to provision a unit. - # @!attribute [rw] release_requirements - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release::ReleaseRequirements] - # Optional. Set of requirements to be fulfilled on the Unit when using this - # Release. - # @!attribute [r] input_variables - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] - # Optional. Output only. List of input variables declared on the blueprint - # and can be present with their values on the unit spec - # @!attribute [r] output_variables - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] - # Optional. Output only. List of output variables declared on the blueprint - # and can be present with their values on the unit status - # @!attribute [rw] input_variable_defaults - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitVariable>] - # Optional. Mapping of input variables to default values. Maximum 100 - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class Release - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Set of requirements to be fulfilled on the Unit when using this Release. - # @!attribute [rw] upgradeable_from_releases - # @return [::Array<::String>] - # Optional. A list of releases from which a unit can be upgraded to this - # one (optional). If left empty no constraints will be applied. When - # provided, unit upgrade requests to this release will check and enforce - # this constraint. - class ReleaseRequirements - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Mapping of input variables to their respective output variable for - # depedenencies - # @!attribute [rw] from - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::FromMapping] - # Optional. Output variables which will get their values from dependencies - # - # Note: The following fields are mutually exclusive: `from`, `to`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] to - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ToMapping] - # Optional. Input variables whose values will be passed on to dependencies. - # - # Note: The following fields are mutually exclusive: `to`, `from`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] variable - # @return [::String] - # Required. name of the variable - class VariableMapping - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Output variables whose values will be passed on to dependencies - # @!attribute [rw] dependency - # @return [::String] - # Required. Alias of the dependency that the outputVariable will pass its - # value to - # @!attribute [rw] output_variable - # @return [::String] - # Required. Name of the outputVariable on the dependency - class FromMapping - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Input variables whose values will be passed on to dependencies - # @!attribute [rw] dependency - # @return [::String] - # Required. Alias of the dependency that the inputVariable will pass its - # value to - # @!attribute [rw] input_variable - # @return [::String] - # Required. Name of the inputVariable on the dependency - # @!attribute [rw] ignore_for_lookup - # @return [::Boolean] - # Optional. Tells SaaS Runtime if this mapping should be used during lookup - # or not - class ToMapping - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Dependency represent a single dependency with another unit kind by alias. - # @!attribute [rw] unit_kind - # @return [::String] - # Required. Immutable. The unit kind of the dependency. - # @!attribute [rw] alias - # @return [::String] - # Required. An alias for the dependency. Used for input variable mapping. - class Dependency - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb deleted file mode 100644 index 25428282bb54..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb +++ /dev/null @@ -1,976 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - # The request structure for the ListSaas method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the saas. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of saas to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListSaasRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListSaas method. - # @!attribute [rw] saas - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas>] - # The resulting saas. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListSaas call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListSaasResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetSaas method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetSaasRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateSaas method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the saas. - # @!attribute [rw] saas_id - # @return [::String] - # Required. The ID value for the new saas. - # @!attribute [rw] saas - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # Required. The desired state for the saas. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateSaasRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateSaas method. - # @!attribute [rw] saas - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas] - # Required. The desired state for the saas. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # Saas resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Saas will be overwritten. - class UpdateSaasRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteSaas method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the saas. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the saas. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteSaasRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the ListTenants method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the tenant. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of tenants to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListTenantsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListTenants method. - # @!attribute [rw] tenants - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant>] - # The resulting tenants. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListTenants call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListTenantsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetTenant method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetTenantRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateTenant method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the tenant. - # @!attribute [rw] tenant_id - # @return [::String] - # Required. The ID value for the new tenant. - # @!attribute [rw] tenant - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # Required. The desired state for the tenant. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateTenantRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateTenant method. - # @!attribute [rw] tenant - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant] - # Required. The desired state for the tenant. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # Tenant resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Tenant will be overwritten. - class UpdateTenantRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteTenant method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the tenant. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the tenant. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteTenantRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the ListUnitKinds method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the unit kind. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of unit kinds to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListUnitKindsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListUnitKinds method. - # @!attribute [rw] unit_kinds - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind>] - # The resulting unit kinds. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListUnitKinds call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListUnitKindsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetUnitKind method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetUnitKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateUnitKind method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the unit kind. - # @!attribute [rw] unit_kind_id - # @return [::String] - # Required. The ID value for the new unit kind. - # @!attribute [rw] unit_kind - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # Required. The desired state for the unit kind. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateUnitKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateUnitKind method. - # @!attribute [rw] unit_kind - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind] - # Required. The desired state for the unit kind. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # UnitKind resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # UnitKind will be overwritten. - class UpdateUnitKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteUnitKind method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the unit kind. This - # is used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit kind. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteUnitKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the ListUnits method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the unit. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of units to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListUnitsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListUnits method. - # @!attribute [rw] units - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit>] - # The resulting units. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListUnits call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListUnitsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetUnit method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetUnitRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateUnit method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the unit. - # @!attribute [rw] unit_id - # @return [::String] - # Required. The ID value for the new unit. - # @!attribute [rw] unit - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # Required. The desired state for the unit. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateUnitRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateUnit method. - # @!attribute [rw] unit - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit] - # Required. The desired state for the unit. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # Unit resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Unit will be overwritten. - class UpdateUnitRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteUnit method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the unit. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteUnitRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the ListUnitOperations method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the unit operation. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of unit operations to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListUnitOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListUnitOperations method. - # @!attribute [rw] unit_operations - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation>] - # The resulting unit operations. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListUnitOperations call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListUnitOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetUnitOperation method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetUnitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateUnitOperation method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the unit operation. - # @!attribute [rw] unit_operation_id - # @return [::String] - # Required. The ID value for the new unit operation. - # @!attribute [rw] unit_operation - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # Required. The desired state for the unit operation. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateUnitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateUnitOperation method. - # @!attribute [rw] unit_operation - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation] - # Required. The desired state for the unit operation. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # UnitOperation resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # UnitOperation will be overwritten. - class UpdateUnitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteUnitOperation method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the unit operation. - # This is used with state-changing methods to prevent accidental overwrites - # when multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the unit operation. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteUnitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the ListReleases method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the release. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of releases to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListReleasesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListReleases method. - # @!attribute [rw] releases - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release>] - # The resulting releases. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListReleases call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListReleasesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetRelease method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetReleaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateRelease method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the release. - # @!attribute [rw] release_id - # @return [::String] - # Required. The ID value for the new release. - # @!attribute [rw] release - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # Required. The desired state for the release. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateReleaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateRelease method. - # @!attribute [rw] release - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release] - # Required. The desired state for the release. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # Release resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Release will be overwritten. - class UpdateReleaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteRelease method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the release. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the release. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteReleaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb deleted file mode 100644 index 8bf8722fd171..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb +++ /dev/null @@ -1,389 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - # Represents a single rollout execution and its results - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/rollout/\\{rollout_id}" - # @!attribute [rw] release - # @return [::String] - # Optional. Immutable. Name of the Release that gets rolled out to target - # Units. Required if no other type of release is specified. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Output only. The time when the rollout started executing. Will be - # empty if the rollout hasn't started yet. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Output only. The time when the rollout finished execution - # (regardless of success, failure, or cancellation). Will be empty if the - # rollout hasn't finished yet. Once set, the rollout is in terminal state and - # all the results are final. - # @!attribute [r] state - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout::RolloutState] - # Output only. Current state of the rollout. - # @!attribute [r] state_message - # @return [::String] - # Output only. Human readable message indicating details about the last state - # transition. - # @!attribute [r] state_transition_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Output only. The time when the rollout transitioned into its - # current state. - # @!attribute [r] root_rollout - # @return [::String] - # Optional. Output only. The root rollout that this rollout is stemming from. - # The resource name (full URI of the resource) following the standard naming - # scheme: - # - # "projects/\\{project}/locations/\\{location}/rollouts/\\{rollout_id}" - # @!attribute [r] parent_rollout - # @return [::String] - # Optional. Output only. The direct parent rollout that this rollout is - # stemming from. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/rollouts/\\{rollout_id}" - # @!attribute [rw] rollout_orchestration_strategy - # @return [::String] - # Optional. The strategy used for executing this Rollout. - # This strategy will override whatever strategy is specified in the - # RolloutType. If not specified on creation, the - # strategy from RolloutType will be used. - # - # There are two supported values strategies which are used to control - # - "Google.Cloud.Simple.AllAtOnce" - # - "Google.Cloud.Simple.OneLocationAtATime" - # - # A rollout with one of these simple strategies will rollout across - # all locations defined in the targeted UnitKind's Saas Locations. - # @!attribute [rw] unit_filter - # @return [::String] - # Optional. CEL(https://github.com/google/cel-spec) formatted filter string - # against Unit. The filter will be applied to determine the eligible unit - # population. This filter can only reduce, but not expand the scope of the - # rollout. If not provided, the unit_filter from the RolloutType will be - # used. - # @!attribute [rw] rollout_kind - # @return [::String] - # Optional. Immutable. Name of the RolloutKind this rollout is stemming from - # and adhering to. - # @!attribute [r] stats - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutStats] - # Optional. Output only. Details about the progress of the rollout. - # @!attribute [rw] control - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutControl] - # Optional. Requested change to the execution of this rollout. - # Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning - # the rollout will be executed to completion while progressing through - # all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING -> - # FAILED). Requests can only be made when the Rollout is in a non-terminal - # state. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class Rollout - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The current state of the rollout. - module RolloutState - # Unspecified state. - ROLLOUT_STATE_UNSPECIFIED = 0 - - # Rollout is in progress. - ROLLOUT_STATE_RUNNING = 1 - - # Rollout has been paused. - ROLLOUT_STATE_PAUSED = 2 - - # Rollout completed successfully. - ROLLOUT_STATE_SUCCEEDED = 3 - - # Rollout has failed. - ROLLOUT_STATE_FAILED = 4 - - # Rollout has been canceled. - ROLLOUT_STATE_CANCELLED = 5 - - # Rollout is waiting for some condition to be met before starting. - ROLLOUT_STATE_WAITING = 6 - - # Rollout is being canceled. - ROLLOUT_STATE_CANCELLING = 7 - - # Rollout is being resumed. - ROLLOUT_STATE_RESUMING = 8 - - # Rollout is being paused. - ROLLOUT_STATE_PAUSING = 9 - end - end - - # An object that describes various settings of Rollout execution. Includes - # built-in policies across GCP and GDC, and customizable policies. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name (full URI of the resource) following the - # standard naming scheme: - # - # "projects/\\{project}/locations/\\{location}/rolloutKinds/\\{rollout_kind_id}" - # @!attribute [rw] unit_kind - # @return [::String] - # Required. Immutable. UnitKind that this rollout kind corresponds to. - # Rollouts stemming from this rollout kind will target the units of this unit - # kind. In other words, this defines the population of target units to be - # upgraded by rollouts. - # @!attribute [rw] rollout_orchestration_strategy - # @return [::String] - # Optional. The strategy used for executing a Rollout. This is a required - # field. - # - # There are two supported values strategies which are used to control - # - "Google.Cloud.Simple.AllAtOnce" - # - "Google.Cloud.Simple.OneLocationAtATime" - # - # A rollout with one of these simple strategies will rollout across - # all locations defined in the associated UnitKind's Saas Locations. - # @!attribute [rw] unit_filter - # @return [::String] - # Optional. CEL(https://github.com/google/cel-spec) formatted filter string - # against Unit. The filter will be applied to determine the eligible unit - # population. This filter can only reduce, but not expand the scope of the - # rollout. - # @!attribute [rw] update_unit_kind_strategy - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind::UpdateUnitKindStrategy] - # Optional. The config for updating the unit kind. By default, the unit kind - # will be updated on the rollout start. - # @!attribute [rw] error_budget - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ErrorBudget] - # Optional. The configuration for error budget. If the number of failed units - # exceeds max(allowed_count, allowed_ratio * total_units), the rollout will - # be paused. If not set, all units will be attempted to be updated regardless - # of the number of failures encountered. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels on the resource, which can be used for categorization. - # similar to Kubernetes resource labels. - # @!attribute [rw] annotations - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Annotations is an unstructured key-value map stored with a - # resource that may be set by external tools to store and retrieve arbitrary - # metadata. They are not queryable and should be preserved when modifying - # objects. - # - # More info: https://kubernetes.io/docs/user-guide/annotations - # @!attribute [r] uid - # @return [::String] - # Output only. The unique identifier of the resource. UID is unique in the - # time and space for this resource within the scope of the service. It is - # typically generated by the server on successful creation of a resource - # and must not be changed. UID is used to uniquely identify resources - # with resource name reuses. This should be a UUID4. - # @!attribute [r] etag - # @return [::String] - # Output only. An opaque value that uniquely identifies a version or - # generation of a resource. It can be used to confirm that the client - # and server agree on the ordering of a resource being written. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp when the resource was last updated. Any - # change to the resource made by users must refresh this value. - # Changes to a resource made by the service should refresh this value. - class RolloutKind - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AnnotationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - module UpdateUnitKindStrategy - # Strategy unspecified. - UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED = 0 - - # Update the unit kind strategy on the rollout start. - UPDATE_UNIT_KIND_STRATEGY_ON_START = 1 - - # Never update the unit kind. - UPDATE_UNIT_KIND_STRATEGY_NEVER = 2 - end - end - - # The configuration for error budget. If the number of failed units exceeds - # max(allowed_count, allowed_ratio * total_units), the rollout will be paused. - # @!attribute [rw] allowed_count - # @return [::Integer] - # Optional. The maximum number of failed units allowed in a location without - # pausing the rollout. - # @!attribute [rw] allowed_percentage - # @return [::Integer] - # Optional. The maximum percentage of units allowed to fail (0, 100] within a - # location without pausing the rollout. - class ErrorBudget - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # RolloutStats contains information about the progress of a rollout. - # @!attribute [r] operations_by_state - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Aggregate>] - # Output only. A breakdown of the progress of operations triggered by the - # rollout. Provides a count of Operations by their state. This can be used to - # determine the number of units which have been updated, or are scheduled to - # be updated. - # - # There will be at most one entry per group. - # Possible values for operation groups are: - # - "SCHEDULED" - # - "PENDING" - # - "RUNNING" - # - "SUCCEEDED" - # - "FAILED" - # - "CANCELLED" - class RolloutStats - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # RolloutControl provides a way to request a change to the execution of a - # Rollout by pausing or canceling it. - # @!attribute [rw] run_params - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutControl::RunRolloutActionParams] - # Optional. Parameters for the RUN action. It is an error to specify this - # if the RolloutAction is not set to RUN. By default, the rollout will - # retry failed operations when resumed. - # @!attribute [rw] action - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutAction] - # Required. Action to be performed on the Rollout. - # The default behavior is to run the rollout until it naturally reaches a - # terminal state. - class RolloutControl - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Parameters for the RUN action controlling the behavior of the rollout - # when it is resumed from a PAUSED state. - # @!attribute [rw] retry_failed_operations - # @return [::Boolean] - # Required. If true, the rollout will retry failed operations when resumed. - # This is applicable only the current state of the Rollout is PAUSED and - # the requested action is RUN. - class RunRolloutActionParams - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # RolloutAction indicates the action to be performed on the Rollout. - module RolloutAction - # Unspecified action, will be treated as RUN by default. - ROLLOUT_ACTION_UNSPECIFIED = 0 - - # Run the Rollout until it naturally reaches a terminal state. - # A rollout requested to run will progress through all natural Rollout - # States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED). - # If retriable errors are encountered during the rollout, the rollout - # will paused by default and can be resumed by re-requesting this RUN - # action. - ROLLOUT_ACTION_RUN = 1 - - # Pause the Rollout until it is resumed (i.e. RUN is requested). - ROLLOUT_ACTION_PAUSE = 2 - - # Cancel the Rollout permanently. - ROLLOUT_ACTION_CANCEL = 3 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb deleted file mode 100644 index 62274e2bab73..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb +++ /dev/null @@ -1,344 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module SaasPlatform - module SaasServiceMgmt - module V1beta1 - # The request structure for the ListRollouts method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the rollout. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of rollouts to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListRolloutsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListRollouts method. - # @!attribute [rw] rollouts - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>] - # The resulting rollouts. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListRollouts call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListRolloutsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetRollout method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetRolloutRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateRollout method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the rollout. - # @!attribute [rw] rollout_id - # @return [::String] - # Required. The ID value for the new rollout. - # @!attribute [rw] rollout - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # Required. The desired state for the rollout. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateRolloutRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateRollout method. - # @!attribute [rw] rollout - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout] - # Required. The desired state for the rollout. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # Rollout resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # Rollout will be overwritten. - class UpdateRolloutRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteRollout method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the rollout. This is - # used with state-changing methods to prevent accidental overwrites when - # multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the rollout. The Any wildcard (`*`) requires that the resource - # must already exists, and the Not Any wildcard (`!*`) requires that it must - # not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteRolloutRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the ListRolloutKinds method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the rollout kind. - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of rollout kinds to send per page. - # @!attribute [rw] page_token - # @return [::String] - # The page token: If the next_page_token from a previous response - # is provided, this request will send the subsequent page. - # @!attribute [rw] filter - # @return [::String] - # Filter the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Order results as specified in https://google.aip.dev/132. - class ListRolloutKindsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response structure for the ListRolloutKinds method. - # @!attribute [rw] rollout_kinds - # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>] - # The resulting rollout kinds. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, the next page token can be provided to a subsequent - # ListRolloutKinds call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations that could not be reached. - class ListRolloutKindsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the GetRolloutKind method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - class GetRolloutKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the CreateRolloutKind method. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent of the rollout kind. - # @!attribute [rw] rollout_kind_id - # @return [::String] - # Required. The ID value for the new rollout kind. - # @!attribute [rw] rollout_kind - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # Required. The desired state for the rollout kind. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class CreateRolloutKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the UpdateRolloutKind method. - # @!attribute [rw] rollout_kind - # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind] - # Required. The desired state for the rollout kind. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Field mask is used to specify the fields to be overwritten in the - # RolloutKind resource by the update. - # - # The fields specified in the update_mask are relative to the resource, not - # the full request. A field will be overwritten if it is in the mask. - # - # If the user does not provide a mask then all fields in the - # RolloutKind will be overwritten. - class UpdateRolloutKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request structure for the DeleteRolloutKind method. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the resource within a service. - # @!attribute [rw] etag - # @return [::String] - # The etag known to the client for the expected state of the rollout kind. - # This is used with state-changing methods to prevent accidental overwrites - # when multiple user agents might be acting in parallel on the same resource. - # - # An etag wildcard provide optimistic concurrency based on the expected - # existence of the rollout kind. The Any wildcard (`*`) requires that the - # resource must already exists, and the Not Any wildcard (`!*`) requires that - # it must not. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If "validate_only" is set to true, the service will try to validate - # that this request would succeed, but will not actually make changes. - # @!attribute [rw] request_id - # @return [::String] - # An optional 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 since 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). - class DeleteRolloutKindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile deleted file mode 100644 index 90ed07065127..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-saas_platform-saas_service_mgmt-v1beta1", path: "../" -else - gem "google-cloud-saas_platform-saas_service_mgmt-v1beta1" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb deleted file mode 100644 index 671b415bccaf..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_release.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_release call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_release. -# -def create_release - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new - - # Call the create_release method. - result = client.create_release request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb deleted file mode 100644 index 02fe4e5f79a9..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_saas.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_saas call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_saas. -# -def create_saas - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new - - # Call the create_saas method. - result = client.create_saas request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb deleted file mode 100644 index 29430bc889e1..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_tenant.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_tenant call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_tenant. -# -def create_tenant - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new - - # Call the create_tenant method. - result = client.create_tenant request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb deleted file mode 100644 index 8405bbd51ea4..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_unit call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit. -# -def create_unit - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new - - # Call the create_unit method. - result = client.create_unit request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb deleted file mode 100644 index 7ac9b6a85477..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_unit_kind call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_kind. -# -def create_unit_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new - - # Call the create_unit_kind method. - result = client.create_unit_kind request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb deleted file mode 100644 index 1a57192d0804..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/create_unit_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_unit_operation call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_operation. -# -def create_unit_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new - - # Call the create_unit_operation method. - result = client.create_unit_operation request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb deleted file mode 100644 index 4b085d53871c..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_release.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_release call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_release. -# -def delete_release - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new - - # Call the delete_release method. - result = client.delete_release request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb deleted file mode 100644 index 287b20fdd8de..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_saas.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_saas call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_saas. -# -def delete_saas - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new - - # Call the delete_saas method. - result = client.delete_saas request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb deleted file mode 100644 index ff3f88c333bb..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_tenant.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_tenant call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_tenant. -# -def delete_tenant - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new - - # Call the delete_tenant method. - result = client.delete_tenant request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb deleted file mode 100644 index f6f2d7f2d174..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_unit call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit. -# -def delete_unit - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new - - # Call the delete_unit method. - result = client.delete_unit request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb deleted file mode 100644 index 464fd58d299d..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_unit_kind call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_kind. -# -def delete_unit_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new - - # Call the delete_unit_kind method. - result = client.delete_unit_kind request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb deleted file mode 100644 index 3cebe280b187..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/delete_unit_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_unit_operation call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_operation. -# -def delete_unit_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new - - # Call the delete_unit_operation method. - result = client.delete_unit_operation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb deleted file mode 100644 index d5bc5e385302..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_release.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_release call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_release. -# -def get_release - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new - - # Call the get_release method. - result = client.get_release request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb deleted file mode 100644 index 2f6921848e62..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_saas.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_saas call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_saas. -# -def get_saas - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new - - # Call the get_saas method. - result = client.get_saas request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb deleted file mode 100644 index e60c8042ce13..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_tenant.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_tenant call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_tenant. -# -def get_tenant - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new - - # Call the get_tenant method. - result = client.get_tenant request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb deleted file mode 100644 index b539f8b644dc..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_unit call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit. -# -def get_unit - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new - - # Call the get_unit method. - result = client.get_unit request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb deleted file mode 100644 index 82f5ce85888b..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_unit_kind call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_kind. -# -def get_unit_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new - - # Call the get_unit_kind method. - result = client.get_unit_kind request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb deleted file mode 100644 index 6cfaedfe0ca0..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/get_unit_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_unit_operation call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_operation. -# -def get_unit_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new - - # Call the get_unit_operation method. - result = client.get_unit_operation request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb deleted file mode 100644 index 7e0d486189c4..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_releases.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_releases call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_releases. -# -def list_releases - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new - - # Call the list_releases method. - result = client.list_releases request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb deleted file mode 100644 index e329ba8bf277..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_saas.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_saas call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_saas. -# -def list_saas - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new - - # Call the list_saas method. - result = client.list_saas request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb deleted file mode 100644 index 63aa78449af2..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_tenants.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_tenants call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_tenants. -# -def list_tenants - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new - - # Call the list_tenants method. - result = client.list_tenants request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb deleted file mode 100644 index 853423937a44..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_kinds.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_unit_kinds call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_kinds. -# -def list_unit_kinds - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new - - # Call the list_unit_kinds method. - result = client.list_unit_kinds request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb deleted file mode 100644 index c1338c41f63b..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_unit_operations.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_unit_operations call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_operations. -# -def list_unit_operations - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new - - # Call the list_unit_operations method. - result = client.list_unit_operations request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb deleted file mode 100644 index 91dec6bd49e1..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/list_units.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_units call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_units. -# -def list_units - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new - - # Call the list_units method. - result = client.list_units request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb deleted file mode 100644 index 9de4514884f5..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_release.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_release call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_release. -# -def update_release - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new - - # Call the update_release method. - result = client.update_release request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb deleted file mode 100644 index 5701d900ad11..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_saas.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_saas call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_saas. -# -def update_saas - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new - - # Call the update_saas method. - result = client.update_saas request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb deleted file mode 100644 index 5a9daf469f69..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_tenant.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_tenant call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_tenant. -# -def update_tenant - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new - - # Call the update_tenant method. - result = client.update_tenant request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb deleted file mode 100644 index f0ea79580356..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_unit call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit. -# -def update_unit - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new - - # Call the update_unit method. - result = client.update_unit request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb deleted file mode 100644 index c5f670d063c8..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_unit_kind call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_kind. -# -def update_unit_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new - - # Call the update_unit_kind method. - result = client.update_unit_kind request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb deleted file mode 100644 index 45e4839655fe..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_deployments/update_unit_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_unit_operation call in the SaasDeployments service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_operation. -# -def update_unit_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new - - # Call the update_unit_operation method. - result = client.update_unit_operation request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb deleted file mode 100644 index ca268c23b8e5..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_rollout call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout. -# -def create_rollout - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new - - # Call the create_rollout method. - result = client.create_rollout request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb deleted file mode 100644 index b2eff129e8aa..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/create_rollout_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the create_rollout_kind call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout_kind. -# -def create_rollout_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new - - # Call the create_rollout_kind method. - result = client.create_rollout_kind request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb deleted file mode 100644 index 3635f31da3c8..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_rollout call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout. -# -def delete_rollout - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new - - # Call the delete_rollout method. - result = client.delete_rollout request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb deleted file mode 100644 index 85b390cdb835..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/delete_rollout_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the delete_rollout_kind call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout_kind. -# -def delete_rollout_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new - - # Call the delete_rollout_kind method. - result = client.delete_rollout_kind request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb deleted file mode 100644 index a753725a1396..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_rollout call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout. -# -def get_rollout - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new - - # Call the get_rollout method. - result = client.get_rollout request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb deleted file mode 100644 index 4bfbd24ee493..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/get_rollout_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the get_rollout_kind call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout_kind. -# -def get_rollout_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new - - # Call the get_rollout_kind method. - result = client.get_rollout_kind request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb deleted file mode 100644 index ae58381bb397..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollout_kinds.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_rollout_kinds call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollout_kinds. -# -def list_rollout_kinds - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new - - # Call the list_rollout_kinds method. - result = client.list_rollout_kinds request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb deleted file mode 100644 index 4a9d1ea856ee..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/list_rollouts.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the list_rollouts call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollouts. -# -def list_rollouts - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new - - # Call the list_rollouts method. - result = client.list_rollouts request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - p item - end -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb deleted file mode 100644 index fdc3c34c42ae..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_rollout call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout. -# -def update_rollout - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new - - # Call the update_rollout method. - result = client.update_rollout request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb deleted file mode 100644 index 1343b74ff25c..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/saas_rollouts/update_rollout_kind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync] -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1" - -## -# Snippet for the update_rollout_kind call in the SaasRollouts service -# -# This snippet 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 as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout_kind. -# -def update_rollout_kind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new - - # Call the update_rollout_kind method. - result = client.update_rollout_kind request - - # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind. - p result -end -# [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync] diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json deleted file mode 100644 index 212cb6c72d68..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/snippets/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json +++ /dev/null @@ -1,1615 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-saas_platform-saas_service_mgmt-v1beta1", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.cloud.saasplatform.saasservicemgmt.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync", - "title": "Snippet for the list_saas call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_saas.", - "file": "saas_deployments/list_saas.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_saas", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_saas", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "ListSaas", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListSaas", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync", - "title": "Snippet for the get_saas call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_saas.", - "file": "saas_deployments/get_saas.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_saas", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_saas", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "GetSaas", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetSaas", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync", - "title": "Snippet for the create_saas call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_saas.", - "file": "saas_deployments/create_saas.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_saas", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_saas", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "CreateSaas", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateSaas", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync", - "title": "Snippet for the update_saas call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_saas.", - "file": "saas_deployments/update_saas.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_saas", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_saas", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "UpdateSaas", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateSaas", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync", - "title": "Snippet for the delete_saas call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_saas.", - "file": "saas_deployments/delete_saas.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_saas", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_saas", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "DeleteSaas", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteSaas", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync", - "title": "Snippet for the list_tenants call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_tenants.", - "file": "saas_deployments/list_tenants.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_tenants", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_tenants", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "ListTenants", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListTenants", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync", - "title": "Snippet for the get_tenant call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_tenant.", - "file": "saas_deployments/get_tenant.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_tenant", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_tenant", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "GetTenant", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetTenant", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync", - "title": "Snippet for the create_tenant call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_tenant.", - "file": "saas_deployments/create_tenant.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_tenant", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_tenant", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "CreateTenant", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateTenant", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync", - "title": "Snippet for the update_tenant call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_tenant.", - "file": "saas_deployments/update_tenant.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_tenant", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_tenant", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "UpdateTenant", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateTenant", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync", - "title": "Snippet for the delete_tenant call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_tenant.", - "file": "saas_deployments/delete_tenant.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_tenant", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_tenant", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "DeleteTenant", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteTenant", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync", - "title": "Snippet for the list_unit_kinds call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_kinds.", - "file": "saas_deployments/list_unit_kinds.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_unit_kinds", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_kinds", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "ListUnitKinds", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitKinds", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync", - "title": "Snippet for the get_unit_kind call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_kind.", - "file": "saas_deployments/get_unit_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_unit_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "GetUnitKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitKind", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync", - "title": "Snippet for the create_unit_kind call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_kind.", - "file": "saas_deployments/create_unit_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_unit_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "CreateUnitKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitKind", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync", - "title": "Snippet for the update_unit_kind call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_kind.", - "file": "saas_deployments/update_unit_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_unit_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "UpdateUnitKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitKind", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync", - "title": "Snippet for the delete_unit_kind call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_kind.", - "file": "saas_deployments/delete_unit_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_unit_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "DeleteUnitKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitKind", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync", - "title": "Snippet for the list_units call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_units.", - "file": "saas_deployments/list_units.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_units", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_units", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "ListUnits", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnits", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync", - "title": "Snippet for the get_unit call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit.", - "file": "saas_deployments/get_unit.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_unit", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "GetUnit", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnit", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync", - "title": "Snippet for the create_unit call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit.", - "file": "saas_deployments/create_unit.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_unit", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "CreateUnit", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnit", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync", - "title": "Snippet for the update_unit call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit.", - "file": "saas_deployments/update_unit.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_unit", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "UpdateUnit", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnit", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync", - "title": "Snippet for the delete_unit call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit.", - "file": "saas_deployments/delete_unit.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_unit", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "DeleteUnit", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnit", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync", - "title": "Snippet for the list_unit_operations call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_operations.", - "file": "saas_deployments/list_unit_operations.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_unit_operations", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_unit_operations", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "ListUnitOperations", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitOperations", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync", - "title": "Snippet for the get_unit_operation call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_operation.", - "file": "saas_deployments/get_unit_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_unit_operation", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_unit_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "GetUnitOperation", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitOperation", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync", - "title": "Snippet for the create_unit_operation call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_operation.", - "file": "saas_deployments/create_unit_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_unit_operation", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_unit_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "CreateUnitOperation", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitOperation", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync", - "title": "Snippet for the update_unit_operation call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_operation.", - "file": "saas_deployments/update_unit_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_unit_operation", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_unit_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "UpdateUnitOperation", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitOperation", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync", - "title": "Snippet for the delete_unit_operation call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_operation.", - "file": "saas_deployments/delete_unit_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_unit_operation", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_unit_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "DeleteUnitOperation", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitOperation", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync", - "title": "Snippet for the list_releases call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_releases.", - "file": "saas_deployments/list_releases.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_releases", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#list_releases", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "ListReleases", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListReleases", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync", - "title": "Snippet for the get_release call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_release.", - "file": "saas_deployments/get_release.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_release", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#get_release", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "GetRelease", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetRelease", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync", - "title": "Snippet for the create_release call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_release.", - "file": "saas_deployments/create_release.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_release", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#create_release", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "CreateRelease", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateRelease", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync", - "title": "Snippet for the update_release call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_release.", - "file": "saas_deployments/update_release.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_release", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#update_release", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "UpdateRelease", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateRelease", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync", - "title": "Snippet for the delete_release call in the SaasDeployments service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_release.", - "file": "saas_deployments/delete_release.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_release", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client#delete_release", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasDeployments::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client" - }, - "method": { - "short_name": "DeleteRelease", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteRelease", - "service": { - "short_name": "SaasDeployments", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync", - "title": "Snippet for the list_rollouts call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollouts.", - "file": "saas_rollouts/list_rollouts.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_rollouts", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollouts", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "ListRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRollouts", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync", - "title": "Snippet for the get_rollout call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout.", - "file": "saas_rollouts/get_rollout.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_rollout", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "GetRollout", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRollout", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync", - "title": "Snippet for the create_rollout call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout.", - "file": "saas_rollouts/create_rollout.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_rollout", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "CreateRollout", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRollout", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync", - "title": "Snippet for the update_rollout call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout.", - "file": "saas_rollouts/update_rollout.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_rollout", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "UpdateRollout", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRollout", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync", - "title": "Snippet for the delete_rollout call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout.", - "file": "saas_rollouts/delete_rollout.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_rollout", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "DeleteRollout", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRollout", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync", - "title": "Snippet for the list_rollout_kinds call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollout_kinds.", - "file": "saas_rollouts/list_rollout_kinds.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_rollout_kinds", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#list_rollout_kinds", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "ListRolloutKinds", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRolloutKinds", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync", - "title": "Snippet for the get_rollout_kind call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout_kind.", - "file": "saas_rollouts/get_rollout_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_rollout_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#get_rollout_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "GetRolloutKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRolloutKind", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync", - "title": "Snippet for the create_rollout_kind call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout_kind.", - "file": "saas_rollouts/create_rollout_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_rollout_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#create_rollout_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "CreateRolloutKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRolloutKind", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync", - "title": "Snippet for the update_rollout_kind call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout_kind.", - "file": "saas_rollouts/update_rollout_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_rollout_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#update_rollout_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "UpdateRolloutKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRolloutKind", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync", - "title": "Snippet for the delete_rollout_kind call in the SaasRollouts service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout_kind.", - "file": "saas_rollouts/delete_rollout_kind.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_rollout_kind", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client#delete_rollout_kind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "SaasRollouts::Client", - "full_name": "::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client" - }, - "method": { - "short_name": "DeleteRolloutKind", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRolloutKind", - "service": { - "short_name": "SaasRollouts", - "full_name": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb deleted file mode 100644 index 005ecd987b9d..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_paths_test.rb +++ /dev/null @@ -1,139 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" - -class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_release_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.release_path project: "value0", location: "value1", release: "value2" - assert_equal "projects/value0/locations/value1/releases/value2", path - end - end - - def test_rollout_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.rollout_path project: "value0", location: "value1", rollout_id: "value2" - assert_equal "projects/value0/locations/value1/rollouts/value2", path - end - end - - def test_saas_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.saas_path project: "value0", location: "value1", saas: "value2" - assert_equal "projects/value0/locations/value1/saas/value2", path - end - end - - def test_tenant_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.tenant_path project: "value0", location: "value1", tenant: "value2" - assert_equal "projects/value0/locations/value1/tenants/value2", path - end - end - - def test_unit_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.unit_path project: "value0", location: "value1", unit: "value2" - assert_equal "projects/value0/locations/value1/units/value2", path - end - end - - def test_unit_kind_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.unit_kind_path project: "value0", location: "value1", unit_kind: "value2" - assert_equal "projects/value0/locations/value1/unitKinds/value2", path - end - end - - def test_unit_operation_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.unit_operation_path project: "value0", location: "value1", unit_operation: "value2" - assert_equal "projects/value0/locations/value1/unitOperations/value2", path - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb deleted file mode 100644 index f3cf27a8a1e7..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_rest_test.rb +++ /dev/null @@ -1,1803 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest" - - -class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_saas - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_saas_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_saas parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_saas_client_stub.call_count - end - end - end - - def test_get_saas - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_saas_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_saas({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_saas name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_saas({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_saas_client_stub.call_count - end - end - end - - def test_create_saas - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - saas_id = "hello world" - saas = {} - validate_only = true - request_id = "hello world" - - create_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_saas_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_saas parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_saas_client_stub.call_count - end - end - end - - def test_update_saas - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - saas = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_saas_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_saas saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_saas_client_stub.call_count - end - end - end - - def test_delete_saas - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_saas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_saas_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_saas name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_saas_client_stub.call_count - end - end - end - - def test_list_tenants - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_tenants_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_tenants_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_tenants_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_tenants parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_tenants ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_tenants(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_tenants_client_stub.call_count - end - end - end - - def test_get_tenant - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_tenant_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_tenant({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_tenant name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_tenant({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_tenant_client_stub.call_count - end - end - end - - def test_create_tenant - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - tenant_id = "hello world" - tenant = {} - validate_only = true - request_id = "hello world" - - create_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_tenant_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_tenant parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_tenant_client_stub.call_count - end - end - end - - def test_update_tenant - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - tenant = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_tenant_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_tenant tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_tenant_client_stub.call_count - end - end - end - - def test_delete_tenant - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_tenant_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_tenant_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_tenant name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_tenant_client_stub.call_count - end - end - end - - def test_list_unit_kinds - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_unit_kinds_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_unit_kinds_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_unit_kinds_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_unit_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_unit_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_unit_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_unit_kinds_client_stub.call_count - end - end - end - - def test_get_unit_kind - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_unit_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_unit_kind({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_unit_kind name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_unit_kind({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_unit_kind_client_stub.call_count - end - end - end - - def test_create_unit_kind - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - unit_kind_id = "hello world" - unit_kind = {} - validate_only = true - request_id = "hello world" - - create_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_unit_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_unit_kind parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_unit_kind_client_stub.call_count - end - end - end - - def test_update_unit_kind - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - unit_kind = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_unit_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_unit_kind unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_unit_kind_client_stub.call_count - end - end - end - - def test_delete_unit_kind - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_unit_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_unit_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_unit_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_unit_kind_client_stub.call_count - end - end - end - - def test_list_units - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_units_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_units_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_units_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_units parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_units ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_units(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_units_client_stub.call_count - end - end - end - - def test_get_unit - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_unit_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_unit({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_unit name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_unit({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_unit_client_stub.call_count - end - end - end - - def test_create_unit - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - unit_id = "hello world" - unit = {} - validate_only = true - request_id = "hello world" - - create_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_unit_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_unit parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_unit_client_stub.call_count - end - end - end - - def test_update_unit - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - unit = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_unit_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_unit unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_unit_client_stub.call_count - end - end - end - - def test_delete_unit - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_unit_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_unit_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_unit name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_unit_client_stub.call_count - end - end - end - - def test_list_unit_operations - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_unit_operations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_unit_operations_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_unit_operations_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_unit_operations parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_unit_operations ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_unit_operations(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_unit_operations_client_stub.call_count - end - end - end - - def test_get_unit_operation - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_unit_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_unit_operation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_unit_operation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_unit_operation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_unit_operation_client_stub.call_count - end - end - end - - def test_create_unit_operation - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - unit_operation_id = "hello world" - unit_operation = {} - validate_only = true - request_id = "hello world" - - create_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_unit_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_unit_operation parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_unit_operation_client_stub.call_count - end - end - end - - def test_update_unit_operation - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - unit_operation = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_unit_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_unit_operation unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_unit_operation_client_stub.call_count - end - end - end - - def test_delete_unit_operation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_unit_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_unit_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_unit_operation name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_unit_operation_client_stub.call_count - end - end - end - - def test_list_releases - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_releases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_list_releases_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_releases_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_releases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_releases ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_releases(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_releases_client_stub.call_count - end - end - end - - def test_get_release - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_get_release_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_release({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_release name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_release({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_release_client_stub.call_count - end - end - end - - def test_create_release - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_id = "hello world" - release = {} - validate_only = true - request_id = "hello world" - - create_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_create_release_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_release parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_release_client_stub.call_count - end - end - end - - def test_update_release - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - release = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_update_release_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_release release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_release_client_stub.call_count - end - end - end - - def test_delete_release - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_release_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::ServiceStub.stub :transcode_delete_release_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_release name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_release_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb deleted file mode 100644 index 17a118efd092..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments_test.rb +++ /dev/null @@ -1,2042 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments" - -class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_saas - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_saas, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_saas parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_saas({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_saas_client_stub.call_rpc_count - end - end - - def test_get_saas - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_saas, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_saas({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_saas name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_saas({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_saas_client_stub.call_rpc_count - end - end - - def test_create_saas - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - saas_id = "hello world" - saas = {} - validate_only = true - request_id = "hello world" - - create_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_saas, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["saas_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas), request["saas"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_saas parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_saas({ parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest.new(parent: parent, saas_id: saas_id, saas: saas, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_saas_client_stub.call_rpc_count - end - end - - def test_update_saas - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - saas = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_saas, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas), request["saas"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_saas saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_saas({ saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest.new(saas: saas, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_saas_client_stub.call_rpc_count - end - end - - def test_delete_saas - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_saas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_saas, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_saas_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_saas name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_saas ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_saas({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_saas(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_saas_client_stub.call_rpc_count - end - end - - def test_list_tenants - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_tenants_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_tenants, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_tenants_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_tenants parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_tenants ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_tenants({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_tenants(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_tenants_client_stub.call_rpc_count - end - end - - def test_get_tenant - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_tenant, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_tenant({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_tenant name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_tenant({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_tenant_client_stub.call_rpc_count - end - end - - def test_create_tenant - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - tenant_id = "hello world" - tenant = {} - validate_only = true - request_id = "hello world" - - create_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_tenant, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["tenant_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant), request["tenant"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_tenant parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_tenant({ parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest.new(parent: parent, tenant_id: tenant_id, tenant: tenant, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_tenant_client_stub.call_rpc_count - end - end - - def test_update_tenant - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - tenant = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_tenant, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant), request["tenant"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_tenant tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_tenant({ tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest.new(tenant: tenant, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_tenant_client_stub.call_rpc_count - end - end - - def test_delete_tenant - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_tenant_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_tenant, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_tenant_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_tenant name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_tenant ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_tenant({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_tenant(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_tenant_client_stub.call_rpc_count - end - end - - def test_list_unit_kinds - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_unit_kinds_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_unit_kinds, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_unit_kinds_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_unit_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_unit_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_unit_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_unit_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_unit_kinds_client_stub.call_rpc_count - end - end - - def test_get_unit_kind - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_unit_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_unit_kind({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_unit_kind name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_unit_kind({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_unit_kind_client_stub.call_rpc_count - end - end - - def test_create_unit_kind - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - unit_kind_id = "hello world" - unit_kind = {} - validate_only = true - request_id = "hello world" - - create_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_unit_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["unit_kind_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind), request["unit_kind"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_unit_kind parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_unit_kind({ parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest.new(parent: parent, unit_kind_id: unit_kind_id, unit_kind: unit_kind, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_unit_kind_client_stub.call_rpc_count - end - end - - def test_update_unit_kind - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - unit_kind = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_unit_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind), request["unit_kind"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_unit_kind unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_unit_kind({ unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest.new(unit_kind: unit_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_unit_kind_client_stub.call_rpc_count - end - end - - def test_delete_unit_kind - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_unit_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_unit_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_unit_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_unit_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_unit_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_unit_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_unit_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_unit_kind_client_stub.call_rpc_count - end - end - - def test_list_units - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_units_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_units, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_units_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_units parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_units ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_units({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_units(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_units_client_stub.call_rpc_count - end - end - - def test_get_unit - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_unit, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_unit({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_unit name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_unit({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_unit_client_stub.call_rpc_count - end - end - - def test_create_unit - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - unit_id = "hello world" - unit = {} - validate_only = true - request_id = "hello world" - - create_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_unit, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["unit_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit), request["unit"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_unit parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_unit({ parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest.new(parent: parent, unit_id: unit_id, unit: unit, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_unit_client_stub.call_rpc_count - end - end - - def test_update_unit - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - unit = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_unit, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit), request["unit"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_unit unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_unit({ unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest.new(unit: unit, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_unit_client_stub.call_rpc_count - end - end - - def test_delete_unit - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_unit_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_unit, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_unit_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_unit name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_unit ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_unit({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_unit(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_unit_client_stub.call_rpc_count - end - end - - def test_list_unit_operations - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_unit_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_unit_operations, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_unit_operations_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_unit_operations parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_unit_operations ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_unit_operations({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_unit_operations(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_unit_operations_client_stub.call_rpc_count - end - end - - def test_get_unit_operation - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_unit_operation, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_unit_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_unit_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_unit_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_unit_operation_client_stub.call_rpc_count - end - end - - def test_create_unit_operation - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - unit_operation_id = "hello world" - unit_operation = {} - validate_only = true - request_id = "hello world" - - create_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_unit_operation, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["unit_operation_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation), request["unit_operation"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_unit_operation parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_unit_operation({ parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest.new(parent: parent, unit_operation_id: unit_operation_id, unit_operation: unit_operation, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_unit_operation_client_stub.call_rpc_count - end - end - - def test_update_unit_operation - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - unit_operation = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_unit_operation, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation), request["unit_operation"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_unit_operation unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_unit_operation({ unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest.new(unit_operation: unit_operation, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_unit_operation_client_stub.call_rpc_count - end - end - - def test_delete_unit_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_unit_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_unit_operation, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_unit_operation_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_unit_operation name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_unit_operation ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_unit_operation({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_unit_operation(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_unit_operation_client_stub.call_rpc_count - end - end - - def test_list_releases - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_releases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_releases, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_releases_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_releases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_releases ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_releases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_releases(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_releases_client_stub.call_rpc_count - end - end - - def test_get_release - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_release, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_release({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_release name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_release({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_release_client_stub.call_rpc_count - end - end - - def test_create_release - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_id = "hello world" - release = {} - validate_only = true - request_id = "hello world" - - create_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_release, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["release_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release), request["release"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_release parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_release({ parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest.new(parent: parent, release_id: release_id, release: release, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_release_client_stub.call_rpc_count - end - end - - def test_update_release - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - release = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_release, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release), request["release"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_release release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_release({ release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest.new(release: release, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_release_client_stub.call_rpc_count - end - end - - def test_delete_release - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_release_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_release, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_release_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_release name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_release ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_release({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_release(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_release_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasDeployments::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb deleted file mode 100644 index 74ed06aa7ce4..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_paths_test.rb +++ /dev/null @@ -1,103 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" - -class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_release_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.release_path project: "value0", location: "value1", release: "value2" - assert_equal "projects/value0/locations/value1/releases/value2", path - end - end - - def test_rollout_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.rollout_path project: "value0", location: "value1", rollout_id: "value2" - assert_equal "projects/value0/locations/value1/rollouts/value2", path - end - end - - def test_rollout_kind_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.rollout_kind_path project: "value0", location: "value1", rollout_kind_id: "value2" - assert_equal "projects/value0/locations/value1/rolloutKinds/value2", path - end - end - - def test_unit_kind_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.unit_kind_path project: "value0", location: "value1", unit_kind: "value2" - assert_equal "projects/value0/locations/value1/unitKinds/value2", path - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb deleted file mode 100644 index 74e871ac379c..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_rest_test.rb +++ /dev/null @@ -1,667 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest" - - -class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_rollouts - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_rollouts_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_list_rollouts_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_rollouts_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_rollouts parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_rollouts ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_rollouts(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_rollouts_client_stub.call_count - end - end - end - - def test_get_rollout - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_get_rollout_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_rollout({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_rollout name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_rollout({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_rollout_client_stub.call_count - end - end - end - - def test_create_rollout - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - rollout_id = "hello world" - rollout = {} - validate_only = true - request_id = "hello world" - - create_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_create_rollout_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_rollout parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_rollout_client_stub.call_count - end - end - end - - def test_update_rollout - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - rollout = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_update_rollout_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_rollout rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_rollout_client_stub.call_count - end - end - end - - def test_delete_rollout - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_rollout_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_delete_rollout_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_rollout name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_rollout_client_stub.call_count - end - end - end - - def test_list_rollout_kinds - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_rollout_kinds_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_list_rollout_kinds_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_rollout_kinds_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_rollout_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_rollout_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_rollout_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_rollout_kinds_client_stub.call_count - end - end - end - - def test_get_rollout_kind - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_get_rollout_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_rollout_kind({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_rollout_kind name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_rollout_kind({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_rollout_kind_client_stub.call_count - end - end - end - - def test_create_rollout_kind - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - rollout_kind_id = "hello world" - rollout_kind = {} - validate_only = true - request_id = "hello world" - - create_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_create_rollout_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_rollout_kind parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_rollout_kind_client_stub.call_count - end - end - end - - def test_update_rollout_kind - # Create test objects. - client_result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - rollout_kind = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_update_rollout_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_rollout_kind rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_rollout_kind_client_stub.call_count - end - end - end - - def test_delete_rollout_kind - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_rollout_kind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.stub :transcode_delete_rollout_kind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_rollout_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_rollout_kind_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb deleted file mode 100644 index eae3d040a59d..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts_test.rb +++ /dev/null @@ -1,750 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb" -require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts" - -class ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_rollouts - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_rollouts_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_rollouts, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_rollouts_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_rollouts parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_rollouts ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_rollouts({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_rollouts(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_rollouts_client_stub.call_rpc_count - end - end - - def test_get_rollout - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_rollout, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_rollout({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_rollout name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_rollout({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_rollout_client_stub.call_rpc_count - end - end - - def test_create_rollout - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - rollout_id = "hello world" - rollout = {} - validate_only = true - request_id = "hello world" - - create_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_rollout, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["rollout_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout), request["rollout"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_rollout parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_rollout({ parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new(parent: parent, rollout_id: rollout_id, rollout: rollout, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_rollout_client_stub.call_rpc_count - end - end - - def test_update_rollout - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - rollout = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_rollout, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout), request["rollout"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_rollout rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_rollout({ rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new(rollout: rollout, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_rollout_client_stub.call_rpc_count - end - end - - def test_delete_rollout - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_rollout_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_rollout, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_rollout_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_rollout name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_rollout ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_rollout({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_rollout(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_rollout_client_stub.call_rpc_count - end - end - - def test_list_rollout_kinds - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_rollout_kinds_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_rollout_kinds, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_rollout_kinds_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_rollout_kinds parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_rollout_kinds ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_rollout_kinds({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_rollout_kinds(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_rollout_kinds_client_stub.call_rpc_count - end - end - - def test_get_rollout_kind - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_rollout_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_rollout_kind({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_rollout_kind name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_rollout_kind({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_rollout_kind_client_stub.call_rpc_count - end - end - - def test_create_rollout_kind - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - rollout_kind_id = "hello world" - rollout_kind = {} - validate_only = true - request_id = "hello world" - - create_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_rollout_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["rollout_kind_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind), request["rollout_kind"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_rollout_kind parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_rollout_kind({ parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new(parent: parent, rollout_kind_id: rollout_kind_id, rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_rollout_kind_client_stub.call_rpc_count - end - end - - def test_update_rollout_kind - # Create GRPC objects. - grpc_response = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - rollout_kind = {} - validate_only = true - request_id = "hello world" - update_mask = {} - - update_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_rollout_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind), request["rollout_kind"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_rollout_kind rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_rollout_kind({ rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new(rollout_kind: rollout_kind, validate_only: validate_only, request_id: request_id, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_rollout_kind_client_stub.call_rpc_count - end - end - - def test_delete_rollout_kind - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - etag = "hello world" - validate_only = true - request_id = "hello world" - - delete_rollout_kind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_rollout_kind, name - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["etag"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_rollout_kind_client_stub do - # Create client - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_rollout_kind name: name, etag: etag, validate_only: validate_only, request_id: request_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_rollout_kind ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_rollout_kind({ name: name, etag: etag, validate_only: validate_only, request_id: request_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_rollout_kind(::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new(name: name, etag: etag, validate_only: validate_only, request_id: request_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_rollout_kind_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb b/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb deleted file mode 100644 index f0e715458fa2..000000000000 --- a/owl-bot-staging/google-cloud-saas_platform-saas_service_mgmt-v1beta1/test/helper.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/rg" - -require "grpc" - -require "ostruct"