diff --git a/google/cloud/gaming/v1/common.proto b/google/cloud/gaming/v1/common.proto index 87cfedcb73215..6469efcddc668 100644 --- a/google/cloud/gaming/v1/common.proto +++ b/google/cloud/gaming/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -122,7 +122,6 @@ message Schedule { // Encapsulates Agones fleet spec and Agones autoscaler spec sources. message SpecSource { // The game server config resource. Uses the form: - // // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`. string game_server_config_name = 1; @@ -163,12 +162,10 @@ message TargetDetails { } // The game server cluster name. Uses the form: - // // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. string game_server_cluster_name = 1; // The game server deployment name. Uses the form: - // // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`. string game_server_deployment_name = 2; diff --git a/google/cloud/gaming/v1/game_server_clusters.proto b/google/cloud/gaming/v1/game_server_clusters.proto index 8e23c67a0b2d1..ba6a5586cdd33 100644 --- a/google/cloud/gaming/v1/game_server_clusters.proto +++ b/google/cloud/gaming/v1/game_server_clusters.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,9 +27,24 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gamin option java_multiple_files = true; option java_package = "com.google.cloud.gaming.v1"; +// A view for GameServerCluster objects. +enum GameServerClusterView { + // The default / unset value. + // The API will default to the BASIC view. + GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED = 0; + + // Include basic information of a GameServerCluster resource and omit + // `cluster_state`. This is the default value (for ListGameServerClusters, + // GetGameServerCluster and PreviewCreateGameServerCluster). + BASIC = 1; + + // Include everything. + FULL = 2; +} + // Request message for GameServerClustersService.ListGameServerClusters. message ListGameServerClustersRequest { - // Required. The parent resource name. Uses the form: + // Required. The parent resource name, in the following form: // "projects/{project}/locations/{location}/realms/{realm}". string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -38,7 +53,7 @@ message ListGameServerClustersRequest { } ]; - // Optional. The maximum number of items to return. If unspecified, the server + // Optional. The maximum number of items to return. If unspecified, the server // will pick an appropriate default. The server may return fewer items than // requested. A caller should only rely on response's // [next_page_token][google.cloud.gaming.v1.ListGameServerClustersResponse.next_page_token] to @@ -54,6 +69,14 @@ message ListGameServerClustersRequest { // Optional. Specifies the ordering of results following syntax at // https://cloud.google.com/apis/design/design_patterns#sorting_order. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. View for the returned GameServerCluster objects. When `FULL` is + // specified, the `cluster_state` field is also returned in the + // GameServerCluster object, which includes the state of the referenced + // Kubernetes cluster such as versions and provider info. The default/unset + // value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does + // not return the `cluster_state` field. + GameServerClusterView view = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for GameServerClustersService.ListGameServerClusters. @@ -71,8 +94,7 @@ message ListGameServerClustersResponse { // Request message for GameServerClustersService.GetGameServerCluster. message GetGameServerClusterRequest { - // Required. The name of the game server cluster to retrieve. Uses the form: - // + // Required. The name of the game server cluster to retrieve, in the following form: // `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -80,11 +102,19 @@ message GetGameServerClusterRequest { type: "gameservices.googleapis.com/GameServerCluster" } ]; + + // Optional. View for the returned GameServerCluster objects. When `FULL` is + // specified, the `cluster_state` field is also returned in the + // GameServerCluster object, which includes the state of the referenced + // Kubernetes cluster such as versions and provider info. The default/unset + // value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does + // not return the `cluster_state` field. + GameServerClusterView view = 6 [(google.api.field_behavior) = OPTIONAL]; } // Request message for GameServerClustersService.CreateGameServerCluster. message CreateGameServerClusterRequest { - // Required. The parent resource name. Uses the form: + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}/realms/{realm-id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -102,7 +132,7 @@ message CreateGameServerClusterRequest { // Request message for GameServerClustersService.PreviewCreateGameServerCluster. message PreviewCreateGameServerClusterRequest { - // Required. The parent resource name. Uses the form: + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}/realms/{realm}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -119,6 +149,13 @@ message PreviewCreateGameServerClusterRequest { // Optional. The target timestamp to compute the preview. google.protobuf.Timestamp preview_time = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field is deprecated, preview will always return + // KubernetesClusterState. + GameServerClusterView view = 6 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; } // Response message for @@ -129,11 +166,15 @@ message PreviewCreateGameServerClusterResponse { // The target state. TargetState target_state = 3; + + // Output only. The state of the Kubernetes cluster in preview, this will be available if + // 'view' is set to `FULL` in the relevant List/Get/Preview request. + KubernetesClusterState cluster_state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for GameServerClustersService.DeleteGameServerCluster. message DeleteGameServerClusterRequest { - // Required. The name of the game server cluster to delete. Uses the form: + // Required. The name of the game server cluster to delete, in the following form: // `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -145,7 +186,7 @@ message DeleteGameServerClusterRequest { // Request message for GameServerClustersService.PreviewDeleteGameServerCluster. message PreviewDeleteGameServerClusterRequest { - // Required. The name of the game server cluster to delete. Uses the form: + // Required. The name of the game server cluster to delete, in the following form: // `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -176,10 +217,7 @@ message UpdateGameServerClusterRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -191,10 +229,7 @@ message PreviewUpdateGameServerClusterRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The target timestamp to compute the preview. @@ -244,11 +279,9 @@ message GameServerCluster { pattern: "projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}" }; - // Required. The resource name of the game server cluster. Uses the form: - // + // Required. The resource name of the game server cluster, in the following form: // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. // For example, - // // `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`. string name = 1 [(google.api.field_behavior) = REQUIRED]; @@ -271,4 +304,69 @@ message GameServerCluster { // Human readable description of the cluster. string description = 7; + + // Output only. The state of the Kubernetes cluster, this will be available if + // 'view' is set to `FULL` in the relevant List/Get/Preview request. + KubernetesClusterState cluster_state = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The state of the Kubernetes cluster. +message KubernetesClusterState { + // The state of the installed versions of Agones/Kubernetes. See also + // https://cloud.google.com/game-servers/docs/versions-and-upgrades. + enum InstallationState { + // The default value. This value is used if the state is omitted. + INSTALLATION_STATE_UNSPECIFIED = 0; + + // The combination of Agones and Kubernetes versions is supported by Google + // Cloud Game Servers. + AGONES_KUBERNETES_VERSION_SUPPORTED = 1; + + // The installed version of Agones is not supported by Google Cloud Game + // Servers. + AGONES_VERSION_UNSUPPORTED = 2; + + // The installed version of Agones is supported by Google Cloud Game + // Servers, but the installed version of Kubernetes is not recommended or + // supported by the version of Agones. + AGONES_KUBERNETES_VERSION_UNSUPPORTED = 3; + + // The installed version of Agones is not recognized because the Agones + // controller's image name does not have a version string reported as + // {major}.{minor}(.{patch}). + AGONES_VERSION_UNRECOGNIZED = 4; + + // The server version of Kubernetes cluster is not recognized because the + // API server didn't return parsable version info on path/version. + KUBERNETES_VERSION_UNRECOGNIZED = 5; + + // Failed to read or verify the version of Agones or Kubernetes. See + // version_installed_error_message for details. + VERSION_VERIFICATION_FAILED = 6; + + // Agones is not installed. + AGONES_NOT_INSTALLED = 7; + } + + // Output only. The version of Agones currently installed in the registered Kubernetes + // cluster. + string agones_version_installed = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version of Kubernetes that is currently used in the registered + // Kubernetes cluster (as detected by the Cloud Game Servers service). + string kubernetes_version_installed = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state for the installed versions of Agones/Kubernetes. + InstallationState installation_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed error message for the installed versions of Agones/Kubernetes. + string version_installed_error_message = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The cloud provider type reported by the first node's providerID in the list + // of nodes on the Kubernetes endpoint. On Kubernetes platforms that support + // zero-node clusters (like GKE-on-GCP), the provider type will be empty. + string provider = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version of Agones that is targeted to be installed in the cluster. + string agones_version_targeted = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/google/cloud/gaming/v1/game_server_clusters_service.proto b/google/cloud/gaming/v1/game_server_clusters_service.proto index b8b8ea27c8d9a..db7a0f28f080d 100644 --- a/google/cloud/gaming/v1/game_server_clusters_service.proto +++ b/google/cloud/gaming/v1/game_server_clusters_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/google/cloud/gaming/v1/game_server_configs.proto b/google/cloud/gaming/v1/game_server_configs.proto index 05a1a169f5a1e..e92448d2faec6 100644 --- a/google/cloud/gaming/v1/game_server_configs.proto +++ b/google/cloud/gaming/v1/game_server_configs.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,8 +28,7 @@ option java_package = "com.google.cloud.gaming.v1"; // Request message for GameServerConfigsService.ListGameServerConfigs. message ListGameServerConfigsRequest { - // Required. The parent resource name. Uses the form: - // + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -71,8 +70,7 @@ message ListGameServerConfigsResponse { // Request message for GameServerConfigsService.GetGameServerConfig. message GetGameServerConfigRequest { - // Required. The name of the game server config to retrieve. Uses the form: - // + // Required. The name of the game server config to retrieve, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -84,8 +82,7 @@ message GetGameServerConfigRequest { // Request message for GameServerConfigsService.CreateGameServerConfig. message CreateGameServerConfigRequest { - // Required. The parent resource name. Uses the form: - // + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -103,8 +100,7 @@ message CreateGameServerConfigRequest { // Request message for GameServerConfigsService.DeleteGameServerConfig. message DeleteGameServerConfigRequest { - // Required. The name of the game server config to delete. Uses the form: - // + // Required. The name of the game server config to delete, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -149,11 +145,9 @@ message GameServerConfig { pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}" }; - // The resource name of the game server config. Uses the form: - // + // The resource name of the game server config, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. // For example, - // // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. string name = 1; diff --git a/google/cloud/gaming/v1/game_server_configs_service.proto b/google/cloud/gaming/v1/game_server_configs_service.proto index bee5334fb6c94..c151d6032faf9 100644 --- a/google/cloud/gaming/v1/game_server_configs_service.proto +++ b/google/cloud/gaming/v1/game_server_configs_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/google/cloud/gaming/v1/game_server_deployments.proto b/google/cloud/gaming/v1/game_server_deployments.proto index 9160eb32a23cf..169558092cb94 100644 --- a/google/cloud/gaming/v1/game_server_deployments.proto +++ b/google/cloud/gaming/v1/game_server_deployments.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ option java_package = "com.google.cloud.gaming.v1"; // Request message for GameServerDeploymentsService.ListGameServerDeployments. message ListGameServerDeploymentsRequest { - // Required. The parent resource name. Uses the form: + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -72,8 +72,7 @@ message ListGameServerDeploymentsResponse { // Request message for GameServerDeploymentsService.GetGameServerDeployment. message GetGameServerDeploymentRequest { - // Required. The name of the game server delpoyment to retrieve. Uses the form: - // + // Required. The name of the game server delpoyment to retrieve, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -86,8 +85,7 @@ message GetGameServerDeploymentRequest { // Request message for // GameServerDeploymentsService.GetGameServerDeploymentRollout. message GetGameServerDeploymentRolloutRequest { - // Required. The name of the game server delpoyment to retrieve. Uses the form: - // + // Required. The name of the game server delpoyment to retrieve, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -99,7 +97,7 @@ message GetGameServerDeploymentRolloutRequest { // Request message for GameServerDeploymentsService.CreateGameServerDeployment. message CreateGameServerDeploymentRequest { - // Required. The parent resource name. Uses the form: + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -117,8 +115,7 @@ message CreateGameServerDeploymentRequest { // Request message for GameServerDeploymentsService.DeleteGameServerDeployment. message DeleteGameServerDeploymentRequest { - // Required. The name of the game server delpoyment to delete. Uses the form: - // + // Required. The name of the game server delpoyment to delete, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -137,10 +134,7 @@ message UpdateGameServerDeploymentRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -153,17 +147,13 @@ message UpdateGameServerDeploymentRolloutRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for GameServerDeploymentsService.FetchDeploymentState. message FetchDeploymentStateRequest { - // Required. The name of the game server delpoyment. Uses the form: - // + // Required. The name of the game server delpoyment, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. string name = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -194,8 +184,7 @@ message GameServerDeployment { pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}" }; - // The resource name of the game server deployment. Uses the form: - // + // The resource name of the game server deployment, in the following form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. // For example, // `projects/my-project/locations/global/gameServerDeployments/my-deployment`. @@ -241,11 +230,10 @@ message GameServerDeploymentRollout { pattern: "projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout" }; - // The resource name of the game server deployment rollout. Uses the form: - // + // The resource name of the game server deployment rollout, in the following + // form: // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. // For example, - // // `projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout`. string name = 1; @@ -257,7 +245,6 @@ message GameServerDeploymentRollout { // The default game server config is applied to all realms unless overridden // in the rollout. For example, - // // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. string default_game_server_config = 4; @@ -278,10 +265,7 @@ message PreviewGameServerDeploymentRolloutRequest { // Optional. Mask of fields to update. At least one path must be supplied in // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The target timestamp to compute the preview. Defaults to the immediately diff --git a/google/cloud/gaming/v1/game_server_deployments_service.proto b/google/cloud/gaming/v1/game_server_deployments_service.proto index 5b07723fb2338..a82d259e83fc4 100644 --- a/google/cloud/gaming/v1/game_server_deployments_service.proto +++ b/google/cloud/gaming/v1/game_server_deployments_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/google/cloud/gaming/v1/gameservices_v1.yaml b/google/cloud/gaming/v1/gameservices_v1.yaml index 5b2a563ec95f7..43b3b6b23a2cb 100644 --- a/google/cloud/gaming/v1/gameservices_v1.yaml +++ b/google/cloud/gaming/v1/gameservices_v1.yaml @@ -17,6 +17,12 @@ types: documentation: summary: Deploy and manage infrastructure for global multiplayer gaming experiences. rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + - selector: google.iam.v1.IAMPolicy.GetIamPolicy description: |- Gets the access control policy for a resource. Returns an empty policy @@ -50,10 +56,12 @@ backend: deadline: 60.0 - selector: 'google.cloud.gaming.v1.GameServerDeploymentsService.*' deadline: 60.0 - - selector: google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState - deadline: 120.0 - selector: 'google.cloud.gaming.v1.RealmsService.*' deadline: 60.0 + - selector: google.cloud.location.Locations.GetLocation + deadline: 60.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 60.0 - selector: 'google.iam.v1.IAMPolicy.*' deadline: 60.0 - selector: 'google.longrunning.Operations.*' @@ -61,6 +69,30 @@ backend: - selector: google.longrunning.Operations.GetOperation deadline: 5.0 +http: + rules: + - selector: google.cloud.location.Locations.GetLocation + get: '/v1/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/v1/{name=projects/*}/locations' + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + get: '/v1/{resource=projects/*/locations/*/gameServerDeployments/*}:getIamPolicy' + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + post: '/v1/{resource=projects/*/locations/*/gameServerDeployments/*}:setIamPolicy' + body: '*' + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + post: '/v1/{resource=projects/*/locations/*/gameServerDeployments/*}:testIamPermissions' + body: '*' + - selector: google.longrunning.Operations.CancelOperation + post: '/v1/{name=projects/*/locations/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v1/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v1/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v1/{name=projects/*/locations/*}/operations' + authentication: rules: - selector: 'google.cloud.gaming.v1.GameServerClustersService.*' @@ -79,6 +111,14 @@ authentication: oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform - selector: 'google.iam.v1.IAMPolicy.*' oauth: canonical_scopes: |- diff --git a/google/cloud/gaming/v1/gaming_grpc_service_config.json b/google/cloud/gaming/v1/gaming_grpc_service_config.json index 34b58347c7db6..9a09cad4fac23 100644 --- a/google/cloud/gaming/v1/gaming_grpc_service_config.json +++ b/google/cloud/gaming/v1/gaming_grpc_service_config.json @@ -18,22 +18,10 @@ { "service": "google.cloud.gaming.v1.RealmsService", "method": "ListRealms" }, { "service": "google.cloud.gaming.v1.RealmsService", "method": "GetRealm" }, - { "service": "google.cloud.gaming.v1.RealmsService", "method": "PreviewRealmUpdate" } - ], - "timeout": "60s", - "retryPolicy": { - "maxAttempts": 5, - "initialBackoff": "1s", - "maxBackoff": "10s", - "backoffMultiplier": 1.3, - "retryableStatusCodes": ["UNAVAILABLE"] - } - }, - { - "name": [ + { "service": "google.cloud.gaming.v1.RealmsService", "method": "PreviewRealmUpdate" }, { "service": "google.cloud.gaming.v1.GameServerDeploymentsService", "method": "FetchDeploymentState" } ], - "timeout": "120s", + "timeout": "60s", "retryPolicy": { "maxAttempts": 5, "initialBackoff": "1s", diff --git a/google/cloud/gaming/v1/realms.proto b/google/cloud/gaming/v1/realms.proto index 6c2425889ced1..8acadf577793b 100644 --- a/google/cloud/gaming/v1/realms.proto +++ b/google/cloud/gaming/v1/realms.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ option java_package = "com.google.cloud.gaming.v1"; // Request message for RealmsService.ListRealms. message ListRealmsRequest { - // Required. The parent resource name. Uses the form: + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -72,7 +72,7 @@ message ListRealmsResponse { // Request message for RealmsService.GetRealm. message GetRealmRequest { - // Required. The name of the realm to retrieve. Uses the form: + // Required. The name of the realm to retrieve, in the following form: // `projects/{project}/locations/{location}/realms/{realm}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -84,7 +84,7 @@ message GetRealmRequest { // Request message for RealmsService.CreateRealm. message CreateRealmRequest { - // Required. The parent resource name. Uses the form: + // Required. The parent resource name, in the following form: // `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -102,7 +102,7 @@ message CreateRealmRequest { // Request message for RealmsService.DeleteRealm. message DeleteRealmRequest { - // Required. The name of the realm to delete. Uses the form: + // Required. The name of the realm to delete, in the following form: // `projects/{project}/locations/{location}/realms/{realm}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -120,10 +120,7 @@ message UpdateRealmRequest { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -135,10 +132,7 @@ message PreviewRealmUpdateRequest { // Required. The update mask applies to the resource. For the `FieldMask` // definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. The target timestamp to compute the preview. @@ -161,7 +155,7 @@ message Realm { pattern: "projects/{project}/locations/{location}/realms/{realm}" }; - // The resource name of the realm. Uses the form: + // The resource name of the realm, in the following form: // `projects/{project}/locations/{location}/realms/{realm}`. For // example, `projects/my-project/locations/{location}/realms/my-realm`. string name = 1; diff --git a/google/cloud/gaming/v1/realms_service.proto b/google/cloud/gaming/v1/realms_service.proto index 5b6467573fae2..018850d71d52a 100644 --- a/google/cloud/gaming/v1/realms_service.proto +++ b/google/cloud/gaming/v1/realms_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.