# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/gkemulticloud/v1/azure_service.proto for package 'Google.Cloud.GkeMultiCloud.V1'
# Original file comments:
# Copyright 2022 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/gkemulticloud/v1/azure_service_pb'

module Google
  module Cloud
    module GkeMultiCloud
      module V1
        module AzureClusters
          # The AzureClusters API provides a single centrally managed service
          # to create and manage Anthos clusters that run on Azure infrastructure.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.gkemulticloud.v1.AzureClusters'

            # Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
            # resource on a given Google Cloud project and region.
            #
            # `AzureClient` resources hold client authentication
            # information needed by the Anthos Multicloud API to manage Azure resources
            # on your Azure subscription on your behalf.
            #
            # If successful, the response contains a newly created
            # [Operation][google.longrunning.Operation] resource that can be
            # described to track the status of the operation.
            rpc :CreateAzureClient, ::Google::Cloud::GkeMultiCloud::V1::CreateAzureClientRequest, ::Google::Longrunning::Operation
            # Describes a specific
            # [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
            rpc :GetAzureClient, ::Google::Cloud::GkeMultiCloud::V1::GetAzureClientRequest, ::Google::Cloud::GkeMultiCloud::V1::AzureClient
            # Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
            # resources on a given Google Cloud project and region.
            rpc :ListAzureClients, ::Google::Cloud::GkeMultiCloud::V1::ListAzureClientsRequest, ::Google::Cloud::GkeMultiCloud::V1::ListAzureClientsResponse
            # Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
            # resource.
            #
            # If the client is used by one or more clusters, deletion will
            # fail and a `FAILED_PRECONDITION` error will be returned.
            #
            # If successful, the response contains a newly created
            # [Operation][google.longrunning.Operation] resource that can be
            # described to track the status of the operation.
            rpc :DeleteAzureClient, ::Google::Cloud::GkeMultiCloud::V1::DeleteAzureClientRequest, ::Google::Longrunning::Operation
            # Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
            # resource on a given Google Cloud Platform project and region.
            #
            # If successful, the response contains a newly created
            # [Operation][google.longrunning.Operation] resource that can be
            # described to track the status of the operation.
            rpc :CreateAzureCluster, ::Google::Cloud::GkeMultiCloud::V1::CreateAzureClusterRequest, ::Google::Longrunning::Operation
            # Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
            rpc :UpdateAzureCluster, ::Google::Cloud::GkeMultiCloud::V1::UpdateAzureClusterRequest, ::Google::Longrunning::Operation
            # Describes a specific
            # [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
            rpc :GetAzureCluster, ::Google::Cloud::GkeMultiCloud::V1::GetAzureClusterRequest, ::Google::Cloud::GkeMultiCloud::V1::AzureCluster
            # Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
            # resources on a given Google Cloud project and region.
            rpc :ListAzureClusters, ::Google::Cloud::GkeMultiCloud::V1::ListAzureClustersRequest, ::Google::Cloud::GkeMultiCloud::V1::ListAzureClustersResponse
            # Deletes a specific
            # [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
            #
            # Fails if the cluster has one or more associated
            # [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
            #
            # If successful, the response contains a newly created
            # [Operation][google.longrunning.Operation] resource that can be
            # described to track the status of the operation.
            rpc :DeleteAzureCluster, ::Google::Cloud::GkeMultiCloud::V1::DeleteAzureClusterRequest, ::Google::Longrunning::Operation
            # Generates an access token for a cluster agent.
            rpc :GenerateAzureClusterAgentToken, ::Google::Cloud::GkeMultiCloud::V1::GenerateAzureClusterAgentTokenRequest, ::Google::Cloud::GkeMultiCloud::V1::GenerateAzureClusterAgentTokenResponse
            # Generates a short-lived access token to authenticate to a given
            # [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
            rpc :GenerateAzureAccessToken, ::Google::Cloud::GkeMultiCloud::V1::GenerateAzureAccessTokenRequest, ::Google::Cloud::GkeMultiCloud::V1::GenerateAzureAccessTokenResponse
            # Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],
            # attached to a given
            # [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
            #
            # If successful, the response contains a newly created
            # [Operation][google.longrunning.Operation] resource that can be
            # described to track the status of the operation.
            rpc :CreateAzureNodePool, ::Google::Cloud::GkeMultiCloud::V1::CreateAzureNodePoolRequest, ::Google::Longrunning::Operation
            # Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
            rpc :UpdateAzureNodePool, ::Google::Cloud::GkeMultiCloud::V1::UpdateAzureNodePoolRequest, ::Google::Longrunning::Operation
            # Describes a specific
            # [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
            rpc :GetAzureNodePool, ::Google::Cloud::GkeMultiCloud::V1::GetAzureNodePoolRequest, ::Google::Cloud::GkeMultiCloud::V1::AzureNodePool
            # Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
            # resources on a given
            # [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
            rpc :ListAzureNodePools, ::Google::Cloud::GkeMultiCloud::V1::ListAzureNodePoolsRequest, ::Google::Cloud::GkeMultiCloud::V1::ListAzureNodePoolsResponse
            # Deletes a specific
            # [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
            #
            # If successful, the response contains a newly created
            # [Operation][google.longrunning.Operation] resource that can be
            # described to track the status of the operation.
            rpc :DeleteAzureNodePool, ::Google::Cloud::GkeMultiCloud::V1::DeleteAzureNodePoolRequest, ::Google::Longrunning::Operation
            # Gets the OIDC discovery document for the cluster.
            # See the
            # [OpenID Connect Discovery 1.0
            # specification](https://openid.net/specs/openid-connect-discovery-1_0.html)
            # for details.
            rpc :GetAzureOpenIdConfig, ::Google::Cloud::GkeMultiCloud::V1::GetAzureOpenIdConfigRequest, ::Google::Cloud::GkeMultiCloud::V1::AzureOpenIdConfig
            # Gets the public component of the cluster signing keys in
            # JSON Web Key format.
            rpc :GetAzureJsonWebKeys, ::Google::Cloud::GkeMultiCloud::V1::GetAzureJsonWebKeysRequest, ::Google::Cloud::GkeMultiCloud::V1::AzureJsonWebKeys
            # Returns information, such as supported Azure regions and Kubernetes
            # versions, on a given Google Cloud location.
            rpc :GetAzureServerConfig, ::Google::Cloud::GkeMultiCloud::V1::GetAzureServerConfigRequest, ::Google::Cloud::GkeMultiCloud::V1::AzureServerConfig
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
