diff --git a/google-cloud-developer_connect-v1/.owlbot-manifest.json b/google-cloud-developer_connect-v1/.owlbot-manifest.json index 7e6f16b594f7..853b70d2c296 100644 --- a/google-cloud-developer_connect-v1/.owlbot-manifest.json +++ b/google-cloud-developer_connect-v1/.owlbot-manifest.json @@ -71,6 +71,7 @@ "snippets/developer_connect/fetch_read_token.rb", "snippets/developer_connect/fetch_read_write_token.rb", "snippets/developer_connect/fetch_self.rb", + "snippets/developer_connect/finish_o_auth.rb", "snippets/developer_connect/get_account_connector.rb", "snippets/developer_connect/get_connection.rb", "snippets/developer_connect/get_git_repository_link.rb", @@ -78,11 +79,14 @@ "snippets/developer_connect/list_connections.rb", "snippets/developer_connect/list_git_repository_links.rb", "snippets/developer_connect/list_users.rb", + "snippets/developer_connect/start_o_auth.rb", "snippets/developer_connect/update_account_connector.rb", "snippets/developer_connect/update_connection.rb", "snippets/insights_config_service/create_insights_config.rb", "snippets/insights_config_service/delete_insights_config.rb", + "snippets/insights_config_service/get_deployment_event.rb", "snippets/insights_config_service/get_insights_config.rb", + "snippets/insights_config_service/list_deployment_events.rb", "snippets/insights_config_service/list_insights_configs.rb", "snippets/insights_config_service/update_insights_config.rb", "snippets/snippet_metadata_google.cloud.developerconnect.v1.json", diff --git a/google-cloud-developer_connect-v1/gapic_metadata.json b/google-cloud-developer_connect-v1/gapic_metadata.json index 5d05627c8b48..15e3038a8897 100644 --- a/google-cloud-developer_connect-v1/gapic_metadata.json +++ b/google-cloud-developer_connect-v1/gapic_metadata.json @@ -129,6 +129,16 @@ "methods": [ "delete_self" ] + }, + "StartOAuth": { + "methods": [ + "start_o_auth" + ] + }, + "FinishOAuth": { + "methods": [ + "finish_o_auth" + ] } } } @@ -163,6 +173,16 @@ "methods": [ "delete_insights_config" ] + }, + "GetDeploymentEvent": { + "methods": [ + "get_deployment_event" + ] + }, + "ListDeploymentEvents": { + "methods": [ + "list_deployment_events" + ] } } } diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/client.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/client.rb index 493624d6bb5a..5a255d86d03c 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/client.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/client.rb @@ -814,8 +814,9 @@ def delete_connection request, options = nil # Creates a GitRepositoryLink. Upon linking a Git Repository, Developer # Connect will configure the Git Repository to send webhook events to # Developer Connect. Connections that use Firebase GitHub Application will - # have events forwarded to the Firebase service. All other Connections will - # have events forwarded to Cloud Build. + # have events forwarded to the Firebase service. Connections that use Gemini + # Code Assist will have events forwarded to Gemini Code Assist service. All + # other Connections will have events forwarded to Cloud Build. # # @overload create_git_repository_link(request, options = nil) # Pass arguments to `create_git_repository_link` via a request object, either of type @@ -2697,6 +2698,186 @@ def delete_self request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Starts OAuth flow for an account connector. + # + # @overload start_o_auth(request, options = nil) + # Pass arguments to `start_o_auth` via a request object, either of type + # {::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest, ::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 start_o_auth(account_connector: nil) + # Pass arguments to `start_o_auth` 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 account_connector [::String] + # Required. The resource name of the AccountConnector in the format + # `projects/*/locations/*/accountConnectors/*`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DeveloperConnect::V1::StartOAuthRequest.new + # + # # Call the start_o_auth method. + # result = client.start_o_auth request + # + # # The returned object is of type Google::Cloud::DeveloperConnect::V1::StartOAuthResponse. + # p result + # + def start_o_auth request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest + + # 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.start_o_auth.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::DeveloperConnect::V1::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.account_connector + header_params["account_connector"] = request.account_connector + 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.start_o_auth.timeout, + metadata: metadata, + retry_policy: @config.rpcs.start_o_auth.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @developer_connect_stub.call_rpc :start_o_auth, 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 + + ## + # Finishes OAuth flow for an account connector. + # + # @overload finish_o_auth(request, options = nil) + # Pass arguments to `finish_o_auth` via a request object, either of type + # {::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest, ::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 finish_o_auth(oauth_params: nil, google_oauth_params: nil, account_connector: nil) + # Pass arguments to `finish_o_auth` 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 oauth_params [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::OAuthParams, ::Hash] + # The params returned by non-Google OAuth 2.0 flow redirect. + # + # Note: The following parameters are mutually exclusive: `oauth_params`, `google_oauth_params`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param google_oauth_params [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::GoogleOAuthParams, ::Hash] + # The params returned by Google OAuth flow redirects. + # + # Note: The following parameters are mutually exclusive: `google_oauth_params`, `oauth_params`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param account_connector [::String] + # Required. The resource name of the AccountConnector in the format + # `projects/*/locations/*/accountConnectors/*`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest.new + # + # # Call the finish_o_auth method. + # result = client.finish_o_auth request + # + # # The returned object is of type Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse. + # p result + # + def finish_o_auth request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest + + # 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.finish_o_auth.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::DeveloperConnect::V1::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.account_connector + header_params["account_connector"] = request.account_connector + 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.finish_o_auth.timeout, + metadata: metadata, + retry_policy: @config.rpcs.finish_o_auth.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @developer_connect_stub.call_rpc :finish_o_auth, 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 DeveloperConnect API. # @@ -3000,6 +3181,16 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :delete_self + ## + # RPC-specific configuration for `start_o_auth` + # @return [::Gapic::Config::Method] + # + attr_reader :start_o_auth + ## + # RPC-specific configuration for `finish_o_auth` + # @return [::Gapic::Config::Method] + # + attr_reader :finish_o_auth # @private def initialize parent_rpcs = nil @@ -3051,6 +3242,10 @@ def initialize parent_rpcs = nil @fetch_self = ::Gapic::Config::Method.new fetch_self_config delete_self_config = parent_rpcs.delete_self if parent_rpcs.respond_to? :delete_self @delete_self = ::Gapic::Config::Method.new delete_self_config + start_o_auth_config = parent_rpcs.start_o_auth if parent_rpcs.respond_to? :start_o_auth + @start_o_auth = ::Gapic::Config::Method.new start_o_auth_config + finish_o_auth_config = parent_rpcs.finish_o_auth if parent_rpcs.respond_to? :finish_o_auth + @finish_o_auth = ::Gapic::Config::Method.new finish_o_auth_config yield self if block_given? end diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb index b36358f00311..03d70818f7c5 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb @@ -104,6 +104,25 @@ def git_repository_link_path project:, location:, connection:, git_repository_li "projects/#{project}/locations/#{location}/connections/#{connection}/gitRepositoryLinks/#{git_repository_link}" end + ## + # Create a fully-qualified Instance resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/instances/{instance}` + # + # @param project [String] + # @param location [String] + # @param instance [String] + # + # @return [::String] + def instance_path project:, location:, instance: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/instances/#{instance}" + end + ## # Create a fully-qualified Location resource string. # @@ -124,20 +143,46 @@ def location_path project:, location: ## # Create a fully-qualified SecretVersion resource string. # - # The resource will be in the following format: + # @overload secret_version_path(project:, secret:, secret_version:) + # The resource will be in the following format: # - # `projects/{project}/secrets/{secret}/versions/{secret_version}` + # `projects/{project}/secrets/{secret}/versions/{secret_version}` # - # @param project [String] - # @param secret [String] - # @param secret_version [String] + # @param project [String] + # @param secret [String] + # @param secret_version [String] + # + # @overload secret_version_path(project:, location:, secret:, secret_version:) + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}` + # + # @param project [String] + # @param location [String] + # @param secret [String] + # @param secret_version [String] # # @return [::String] - def secret_version_path project:, secret:, secret_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" - - "projects/#{project}/secrets/#{secret}/versions/#{secret_version}" + def secret_version_path **args + resources = { + "project:secret:secret_version" => (proc do |project:, secret:, secret_version:| + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" + + "projects/#{project}/secrets/#{secret}/versions/#{secret_version}" + end), + "location:project:secret:secret_version" => (proc do |project:, location:, secret:, secret_version:| + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" + + "projects/#{project}/locations/#{location}/secrets/#{secret}/versions/#{secret_version}" + end) + } + + resource = resources[args.keys.sort.join(":")] + raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? + resource.call(**args) end ## diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb index 1e6a67595680..bfae2a68eb8c 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb @@ -773,8 +773,9 @@ def delete_connection request, options = nil # Creates a GitRepositoryLink. Upon linking a Git Repository, Developer # Connect will configure the Git Repository to send webhook events to # Developer Connect. Connections that use Firebase GitHub Application will - # have events forwarded to the Firebase service. All other Connections will - # have events forwarded to Cloud Build. + # have events forwarded to the Firebase service. Connections that use Gemini + # Code Assist will have events forwarded to Gemini Code Assist service. All + # other Connections will have events forwarded to Cloud Build. # # @overload create_git_repository_link(request, options = nil) # Pass arguments to `create_git_repository_link` via a request object, either of type @@ -2523,6 +2524,172 @@ def delete_self request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Starts OAuth flow for an account connector. + # + # @overload start_o_auth(request, options = nil) + # Pass arguments to `start_o_auth` via a request object, either of type + # {::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest, ::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 start_o_auth(account_connector: nil) + # Pass arguments to `start_o_auth` 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 account_connector [::String] + # Required. The resource name of the AccountConnector in the format + # `projects/*/locations/*/accountConnectors/*`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DeveloperConnect::V1::StartOAuthRequest.new + # + # # Call the start_o_auth method. + # result = client.start_o_auth request + # + # # The returned object is of type Google::Cloud::DeveloperConnect::V1::StartOAuthResponse. + # p result + # + def start_o_auth request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest + + # 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.start_o_auth.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::DeveloperConnect::V1::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.start_o_auth.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.start_o_auth.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @developer_connect_stub.start_o_auth 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 + + ## + # Finishes OAuth flow for an account connector. + # + # @overload finish_o_auth(request, options = nil) + # Pass arguments to `finish_o_auth` via a request object, either of type + # {::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest, ::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 finish_o_auth(oauth_params: nil, google_oauth_params: nil, account_connector: nil) + # Pass arguments to `finish_o_auth` 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 oauth_params [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::OAuthParams, ::Hash] + # The params returned by non-Google OAuth 2.0 flow redirect. + # + # Note: The following parameters are mutually exclusive: `oauth_params`, `google_oauth_params`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param google_oauth_params [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::GoogleOAuthParams, ::Hash] + # The params returned by Google OAuth flow redirects. + # + # Note: The following parameters are mutually exclusive: `google_oauth_params`, `oauth_params`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param account_connector [::String] + # Required. The resource name of the AccountConnector in the format + # `projects/*/locations/*/accountConnectors/*`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest.new + # + # # Call the finish_o_auth method. + # result = client.finish_o_auth request + # + # # The returned object is of type Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse. + # p result + # + def finish_o_auth request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest + + # 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.finish_o_auth.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::DeveloperConnect::V1::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.finish_o_auth.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.finish_o_auth.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @developer_connect_stub.finish_o_auth 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 DeveloperConnect REST API. # @@ -2796,6 +2963,16 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :delete_self + ## + # RPC-specific configuration for `start_o_auth` + # @return [::Gapic::Config::Method] + # + attr_reader :start_o_auth + ## + # RPC-specific configuration for `finish_o_auth` + # @return [::Gapic::Config::Method] + # + attr_reader :finish_o_auth # @private def initialize parent_rpcs = nil @@ -2847,6 +3024,10 @@ def initialize parent_rpcs = nil @fetch_self = ::Gapic::Config::Method.new fetch_self_config delete_self_config = parent_rpcs.delete_self if parent_rpcs.respond_to? :delete_self @delete_self = ::Gapic::Config::Method.new delete_self_config + start_o_auth_config = parent_rpcs.start_o_auth if parent_rpcs.respond_to? :start_o_auth + @start_o_auth = ::Gapic::Config::Method.new start_o_auth_config + finish_o_auth_config = parent_rpcs.finish_o_auth if parent_rpcs.respond_to? :finish_o_auth + @finish_o_auth = ::Gapic::Config::Method.new finish_o_auth_config yield self if block_given? end diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb index 48181d92aba3..04c485c60174 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb @@ -1033,6 +1033,86 @@ def delete_self request_pb, options = nil end end + ## + # Baseline implementation for the start_o_auth REST call + # + # @param request_pb [::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest] + # 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::DeveloperConnect::V1::StartOAuthResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse] + # A result object deserialized from the server's reply + def start_o_auth request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_start_o_auth_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: "start_o_auth", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the finish_o_auth REST call + # + # @param request_pb [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest] + # 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::DeveloperConnect::V1::FinishOAuthResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse] + # A result object deserialized from the server's reply + def finish_o_auth request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_finish_o_auth_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: "finish_o_auth", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # @private # @@ -1544,6 +1624,48 @@ def self.transcode_delete_self_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the start_o_auth REST call + # + # @param request_pb [::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_start_o_auth_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{account_connector}/users:startOAuthFlow", + matches: [ + ["account_connector", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the finish_o_auth REST call + # + # @param request_pb [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_finish_o_auth_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{account_connector}/users:finishOAuthFlow", + matches: [ + ["account_connector", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb index b59eb7b4f21d..4a5e4409d71d 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb @@ -15,7 +15,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n8google/cloud/developerconnect/v1/developer_connect.proto\x12 google.cloud.developerconnect.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x01\n\x10ListUsersRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$developerconnect.googleapis.com/User\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"x\n\x11ListUsersResponse\x12\x35\n\x05users\x18\x01 \x03(\x0b\x32&.google.cloud.developerconnect.v1.User\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xd7\x0b\n\nConnection\x12G\n\rgithub_config\x18\x05 \x01(\x0b\x32..google.cloud.developerconnect.v1.GitHubConfigH\x00\x12\\\n\x18github_enterprise_config\x18\r \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.GitHubEnterpriseConfigH\x00\x12G\n\rgitlab_config\x18\x0e \x01(\x0b\x32..google.cloud.developerconnect.v1.GitLabConfigH\x00\x12\\\n\x18gitlab_enterprise_config\x18\x10 \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.GitLabEnterpriseConfigH\x00\x12\x63\n\x1c\x62itbucket_data_center_config\x18\x11 \x01(\x0b\x32;.google.cloud.developerconnect.v1.BitbucketDataCenterConfigH\x00\x12X\n\x16\x62itbucket_cloud_config\x18\x12 \x01(\x0b\x32\x36.google.cloud.developerconnect.v1.BitbucketCloudConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12M\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.cloud.developerconnect.v1.Connection.LabelsEntryB\x03\xe0\x41\x01\x12T\n\x12installation_state\x18\x06 \x01(\x0b\x32\x33.google.cloud.developerconnect.v1.InstallationStateB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0breconciling\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12W\n\x0b\x61nnotations\x18\t \x03(\x0b\x32=.google.cloud.developerconnect.v1.Connection.AnnotationsEntryB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x03uid\x18\x0c \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12Q\n\x11\x63rypto_key_config\x18\x0f \x01(\x0b\x32\x31.google.cloud.developerconnect.v1.CryptoKeyConfigB\x03\xe0\x41\x01\x12O\n\x10git_proxy_config\x18\x13 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.GitProxyConfigB\x03\xe0\x41\x01\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:\x8e\x01\xea\x41\x8a\x01\n*developerconnect.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}*\x0b\x63onnections2\nconnectionR\x01\x01\x42\x13\n\x11\x63onnection_config\"S\n\x0f\x43ryptoKeyConfig\x12@\n\rkey_reference\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"&\n\x0eGitProxyConfig\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"\x88\x02\n\x11InstallationState\x12M\n\x05stage\x18\x01 \x01(\x0e\x32\x39.google.cloud.developerconnect.v1.InstallationState.StageB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\naction_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"u\n\x05Stage\x12\x15\n\x11STAGE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_CREATE_APP\x10\x01\x12\x16\n\x12PENDING_USER_OAUTH\x10\x02\x12\x17\n\x13PENDING_INSTALL_APP\x10\x03\x12\x0c\n\x08\x43OMPLETE\x10\n\"\xcb\x02\n\x0cGitHubConfig\x12T\n\ngithub_app\x18\x01 \x01(\x0e\x32\x38.google.cloud.developerconnect.v1.GitHubConfig.GitHubAppB\x06\xe0\x41\x02\xe0\x41\x05\x12U\n\x15\x61uthorizer_credential\x18\x02 \x01(\x0b\x32\x31.google.cloud.developerconnect.v1.OAuthCredentialB\x03\xe0\x41\x01\x12 \n\x13\x61pp_installation_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10installation_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\"M\n\tGitHubApp\x12\x1b\n\x17GIT_HUB_APP_UNSPECIFIED\x10\x00\x12\x15\n\x11\x44\x45VELOPER_CONNECT\x10\x01\x12\x0c\n\x08\x46IREBASE\x10\x02\"\xee\x03\n\x16GitHubEnterpriseConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x61pp_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x15\n\x08\x61pp_slug\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12V\n\x1aprivate_key_secret_version\x18\x04 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1dwebhook_secret_secret_version\x18\x05 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12 \n\x13\x61pp_installation_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10installation_uri\x18\t \x01(\tB\x03\xe0\x41\x03\x12_\n\x18service_directory_config\x18\n \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_version\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12ssl_ca_certificate\x18\x0e \x01(\tB\x03\xe0\x41\x01\"Z\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\x80\x01\n\x0fOAuthCredential\x12V\n\x1aoauth_token_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\x9d\x02\n\x0cGitLabConfig\x12\\\n\x1dwebhook_secret_secret_version\x18\x01 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x02 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\"~\n\x0eUserCredential\x12U\n\x19user_token_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xdd\x03\n\x16GitLabEnterpriseConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12_\n\x18service_directory_config\x18\x05 \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x1f\n\x12ssl_ca_certificate\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xe0\x03\n\x19\x42itbucketDataCenterConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12_\n\x18service_directory_config\x18\x05 \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x1f\n\x12ssl_ca_certificate\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xbd\x02\n\x14\x42itbucketCloudConfig\x12\x16\n\tworkspace\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\"\xb9\x01\n\x16ListConnectionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*developerconnect.googleapis.com/Connection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8a\x01\n\x17ListConnectionsResponse\x12\x41\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32,.google.cloud.developerconnect.v1.Connection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x14GetConnectionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\"\xfd\x01\n\x17\x43reateConnectionRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*developerconnect.googleapis.com/Connection\x12\x1a\n\rconnection_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nconnection\x18\x03 \x01(\x0b\x32,.google.cloud.developerconnect.v1.ConnectionB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xef\x01\n\x17UpdateConnectionRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x45\n\nconnection\x18\x02 \x01(\x0b\x32,.google.cloud.developerconnect.v1.ConnectionB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xab\x01\n\x17\x44\x65leteConnectionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xc5\x01\n\x1cListAccountConnectorsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x64\x65veloperconnect.googleapis.com/AccountConnector\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9d\x01\n\x1dListAccountConnectorsResponse\x12N\n\x12\x61\x63\x63ount_connectors\x18\x01 \x03(\x0b\x32\x32.google.cloud.developerconnect.v1.AccountConnector\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"d\n\x1aGetAccountConnectorRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"\x9d\x02\n\x1d\x43reateAccountConnectorRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x64\x65veloperconnect.googleapis.com/AccountConnector\x12!\n\x14\x61\x63\x63ount_connector_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12R\n\x11\x61\x63\x63ount_connector\x18\x03 \x01(\x0b\x32\x32.google.cloud.developerconnect.v1.AccountConnectorB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x82\x02\n\x1dUpdateAccountConnectorRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12R\n\x11\x61\x63\x63ount_connector\x18\x02 \x01(\x0b\x32\x32.google.cloud.developerconnect.v1.AccountConnectorB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xcb\x01\n\x1d\x44\x65leteAccountConnectorRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x9f\x01\n\x11\x44\x65leteUserRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$developerconnect.googleapis.com/User\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"Z\n\x10\x46\x65tchSelfRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"[\n\x11\x44\x65leteSelfRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"n\n\x17\x46\x65tchAccessTokenRequest\x12S\n\x11\x61\x63\x63ount_connector\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"\xb7\x01\n\x18\x46\x65tchAccessTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06scopes\x18\x03 \x03(\t\x12G\n\x0e\x65xchange_error\x18\x04 \x01(\x0b\x32/.google.cloud.developerconnect.v1.ExchangeError\"2\n\rExchangeError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"\xc4\x06\n\x11GitRepositoryLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x16\n\tclone_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12T\n\x06labels\x18\x06 \x03(\x0b\x32?.google.cloud.developerconnect.v1.GitRepositoryLink.LabelsEntryB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0breconciling\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12^\n\x0b\x61nnotations\x18\t \x03(\x0b\x32\x44.google.cloud.developerconnect.v1.GitRepositoryLink.AnnotationsEntryB\x03\xe0\x41\x01\x12\x18\n\x03uid\x18\n \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x17\n\nwebhook_id\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rgit_proxy_uri\x18\x0c \x01(\tB\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:\xcc\x01\xea\x41\xc8\x01\n1developerconnect.googleapis.com/GitRepositoryLink\x12iprojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}*\x12gitRepositoryLinks2\x11gitRepositoryLinkR\x01\x01\"\xa4\x02\n\x1e\x43reateGitRepositoryLinkRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31\x64\x65veloperconnect.googleapis.com/GitRepositoryLink\x12U\n\x13git_repository_link\x18\x02 \x01(\x0b\x32\x33.google.cloud.developerconnect.v1.GitRepositoryLinkB\x03\xe0\x41\x02\x12#\n\x16git_repository_link_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xb9\x01\n\x1e\x44\x65leteGitRepositoryLinkRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xc7\x01\n\x1dListGitRepositoryLinksRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31\x64\x65veloperconnect.googleapis.com/GitRepositoryLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa1\x01\n\x1eListGitRepositoryLinksResponse\x12Q\n\x14git_repository_links\x18\x01 \x03(\x0b\x32\x33.google.cloud.developerconnect.v1.GitRepositoryLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"f\n\x1bGetGitRepositoryLinkRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\"t\n\x1a\x46\x65tchReadWriteTokenRequest\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\"o\n\x15\x46\x65tchReadTokenRequest\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\"r\n\x16\x46\x65tchReadTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cgit_username\x18\x03 \x01(\t\"w\n\x1b\x46\x65tchReadWriteTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cgit_username\x18\x03 \x01(\t\"\x9e\x01\n#FetchLinkableGitRepositoriesRequest\x12\x46\n\nconnection\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n$FetchLinkableGitRepositoriesResponse\x12Z\n\x19linkable_git_repositories\x18\x01 \x03(\x0b\x32\x37.google.cloud.developerconnect.v1.LinkableGitRepository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"*\n\x15LinkableGitRepository\x12\x11\n\tclone_uri\x18\x01 \x01(\t\"i\n\x1f\x46\x65tchGitHubInstallationsRequest\x12\x46\n\nconnection\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\"\xc2\x01\n FetchGitHubInstallationsResponse\x12\x66\n\rinstallations\x18\x01 \x03(\x0b\x32O.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation\x1a\x36\n\x0cInstallation\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\"\xae\x02\n\x13\x46\x65tchGitRefsRequest\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\x12T\n\x08ref_type\x18\x02 \x01(\x0e\x32=.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefTypeB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"8\n\x07RefType\x12\x18\n\x14REF_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03TAG\x10\x01\x12\n\n\x06\x42RANCH\x10\x02\"B\n\x14\x46\x65tchGitRefsResponse\x12\x11\n\tref_names\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xfd\x05\n\x10\x41\x63\x63ountConnector\x12V\n\x15provider_oauth_config\x18\x05 \x01(\x0b\x32\x35.google.cloud.developerconnect.v1.ProviderOAuthConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12]\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32\x43.google.cloud.developerconnect.v1.AccountConnector.AnnotationsEntryB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12S\n\x06labels\x18\x08 \x03(\x0b\x32>.google.cloud.developerconnect.v1.AccountConnector.LabelsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0foauth_start_uri\x18\n \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xad\x01\xea\x41\xa9\x01\n0developerconnect.googleapis.com/AccountConnector\x12Mprojects/{project}/locations/{location}/accountConnectors/{account_connector}*\x11\x61\x63\x63ountConnectors2\x10\x61\x63\x63ountConnectorR\x01\x01\x42\x1a\n\x18\x61\x63\x63ount_connector_config\"\xc2\x02\n\x04User\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x17last_token_request_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x93\x01\xea\x41\x8f\x01\n$developerconnect.googleapis.com/User\x12Zprojects/{project}/locations/{location}/accountConnectors/{account_connector}/users/{user}*\x05users2\x04user\"\x94\x01\n\x13ProviderOAuthConfig\x12S\n\x12system_provider_id\x18\x01 \x01(\x0e\x32\x30.google.cloud.developerconnect.v1.SystemProviderB\x03\xe0\x41\x05H\x00\x12\x13\n\x06scopes\x18\x02 \x03(\tB\x03\xe0\x41\x02\x42\x13\n\x11oauth_provider_id*\x97\x01\n\x0eSystemProvider\x12\x1f\n\x1bSYSTEM_PROVIDER_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\x01\x12\n\n\x06GITLAB\x10\x02\x12\n\n\x06GOOGLE\x10\x03\x12\n\n\x06SENTRY\x10\x04\x12\x08\n\x04ROVO\x10\x05\x12\r\n\tNEW_RELIC\x10\x06\x12\x0c\n\x08\x44\x41TASTAX\x10\x07\x12\r\n\tDYNATRACE\x10\x08\x32\xe9.\n\x10\x44\x65veloperConnect\x12\xc8\x01\n\x0fListConnections\x12\x38.google.cloud.developerconnect.v1.ListConnectionsRequest\x1a\x39.google.cloud.developerconnect.v1.ListConnectionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/connections\x12\xb5\x01\n\rGetConnection\x12\x36.google.cloud.developerconnect.v1.GetConnectionRequest\x1a,.google.cloud.developerconnect.v1.Connection\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/connections/*}\x12\xf6\x01\n\x10\x43reateConnection\x12\x39.google.cloud.developerconnect.v1.CreateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1f\n\nConnection\x12\x11OperationMetadata\xda\x41\x1fparent,connection,connection_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/connections:\nconnection\x12\xf8\x01\n\x10UpdateConnection\x12\x39.google.cloud.developerconnect.v1.UpdateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1f\n\nConnection\x12\x11OperationMetadata\xda\x41\x16\x63onnection,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{connection.name=projects/*/locations/*/connections/*}:\nconnection\x12\xd9\x01\n\x10\x44\x65leteConnection\x12\x39.google.cloud.developerconnect.v1.DeleteConnectionRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/connections/*}\x12\xbb\x02\n\x17\x43reateGitRepositoryLink\x12@.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest\x1a\x1d.google.longrunning.Operation\"\xbe\x01\xca\x41&\n\x11GitRepositoryLink\x12\x11OperationMetadata\xda\x41\x31parent,git_repository_link,git_repository_link_id\x82\xd3\xe4\x93\x02[\"D/v1/{parent=projects/*/locations/*/connections/*}/gitRepositoryLinks:\x13git_repository_link\x12\xfd\x01\n\x17\x44\x65leteGitRepositoryLink\x12@.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46*D/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}\x12\xf2\x01\n\x16ListGitRepositoryLinks\x12?.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest\x1a@.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{parent=projects/*/locations/*/connections/*}/gitRepositoryLinks\x12\xdf\x01\n\x14GetGitRepositoryLink\x12=.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest\x1a\x33.google.cloud.developerconnect.v1.GitRepositoryLink\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}\x12\x9d\x02\n\x13\x46\x65tchReadWriteToken\x12<.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest\x1a=.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse\"\x88\x01\xda\x41\x13git_repository_link\x82\xd3\xe4\x93\x02l\"g/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchReadWriteToken:\x01*\x12\x89\x02\n\x0e\x46\x65tchReadToken\x12\x37.google.cloud.developerconnect.v1.FetchReadTokenRequest\x1a\x38.google.cloud.developerconnect.v1.FetchReadTokenResponse\"\x83\x01\xda\x41\x13git_repository_link\x82\xd3\xe4\x93\x02g\"b/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchReadToken:\x01*\x12\x96\x02\n\x1c\x46\x65tchLinkableGitRepositories\x12\x45.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest\x1a\x46.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse\"g\xda\x41\nconnection\x82\xd3\xe4\x93\x02T\x12R/v1/{connection=projects/*/locations/*/connections/*}:fetchLinkableGitRepositories\x12\x86\x02\n\x18\x46\x65tchGitHubInstallations\x12\x41.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest\x1a\x42.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse\"c\xda\x41\nconnection\x82\xd3\xe4\x93\x02P\x12N/v1/{connection=projects/*/locations/*/connections/*}:fetchGitHubInstallations\x12\x87\x02\n\x0c\x46\x65tchGitRefs\x12\x35.google.cloud.developerconnect.v1.FetchGitRefsRequest\x1a\x36.google.cloud.developerconnect.v1.FetchGitRefsResponse\"\x87\x01\xda\x41\x1cgit_repository_link,ref_type\x82\xd3\xe4\x93\x02\x62\x12`/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchGitRefs\x12\xe0\x01\n\x15ListAccountConnectors\x12>.google.cloud.developerconnect.v1.ListAccountConnectorsRequest\x1a?.google.cloud.developerconnect.v1.ListAccountConnectorsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{parent=projects/*/locations/*}/accountConnectors\x12\xcd\x01\n\x13GetAccountConnector\x12<.google.cloud.developerconnect.v1.GetAccountConnectorRequest\x1a\x32.google.cloud.developerconnect.v1.AccountConnector\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/accountConnectors/*}\x12\xa3\x02\n\x16\x43reateAccountConnector\x12?.google.cloud.developerconnect.v1.CreateAccountConnectorRequest\x1a\x1d.google.longrunning.Operation\"\xa8\x01\xca\x41%\n\x10\x41\x63\x63ountConnector\x12\x11OperationMetadata\xda\x41-parent,account_connector,account_connector_id\x82\xd3\xe4\x93\x02J\"5/v1/{parent=projects/*/locations/*}/accountConnectors:\x11\x61\x63\x63ount_connector\x12\xa5\x02\n\x16UpdateAccountConnector\x12?.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\xca\x41%\n\x10\x41\x63\x63ountConnector\x12\x11OperationMetadata\xda\x41\x1d\x61\x63\x63ount_connector,update_mask\x82\xd3\xe4\x93\x02\\2G/v1/{account_connector.name=projects/*/locations/*/accountConnectors/*}:\x11\x61\x63\x63ount_connector\x12\xeb\x01\n\x16\x44\x65leteAccountConnector\x12?.google.cloud.developerconnect.v1.DeleteAccountConnectorRequest\x1a\x1d.google.longrunning.Operation\"q\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1/{name=projects/*/locations/*/accountConnectors/*}\x12\x83\x02\n\x10\x46\x65tchAccessToken\x12\x39.google.cloud.developerconnect.v1.FetchAccessTokenRequest\x1a:.google.cloud.developerconnect.v1.FetchAccessTokenResponse\"x\xda\x41\x11\x61\x63\x63ount_connector\x82\xd3\xe4\x93\x02^\"Y/v1/{account_connector=projects/*/locations/*/accountConnectors/*}/users:fetchAccessToken:\x01*\x12\xc4\x01\n\tListUsers\x12\x32.google.cloud.developerconnect.v1.ListUsersRequest\x1a\x33.google.cloud.developerconnect.v1.ListUsersResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/accountConnectors/*}/users\x12\xdb\x01\n\nDeleteUser\x12\x33.google.cloud.developerconnect.v1.DeleteUserRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/accountConnectors/*/users/*}\x12\xbd\x01\n\tFetchSelf\x12\x32.google.cloud.developerconnect.v1.FetchSelfRequest\x1a&.google.cloud.developerconnect.v1.User\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/accountConnectors/*}/users:fetchSelf\x12\xe5\x01\n\nDeleteSelf\x12\x33.google.cloud.developerconnect.v1.DeleteSelfRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/accountConnectors/*}/users:deleteSelf\x1aS\xca\x41\x1f\x64\x65veloperconnect.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf8\x04\n$com.google.cloud.developerconnect.v1B\x15\x44\x65veloperConnectProtoP\x01ZPcloud.google.com/go/developerconnect/apiv1/developerconnectpb;developerconnectpb\xa2\x02\x10\x44\x65veloperConnect\xaa\x02 Google.Cloud.DeveloperConnect.V1\xca\x02 Google\\Cloud\\DeveloperConnect\\V1\xea\x02#Google::Cloud::DeveloperConnect::V1\xea\x41k\n*secretmanager.googleapis.com/SecretVersion\x12=projects/{project}/secrets/{secret}/versions/{secret_version}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\x06proto3" +descriptor_data = "\n8google/cloud/developerconnect/v1/developer_connect.proto\x12 google.cloud.developerconnect.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x01\n\x10ListUsersRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$developerconnect.googleapis.com/User\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"x\n\x11ListUsersResponse\x12\x35\n\x05users\x18\x01 \x03(\x0b\x32&.google.cloud.developerconnect.v1.User\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa6\r\n\nConnection\x12G\n\rgithub_config\x18\x05 \x01(\x0b\x32..google.cloud.developerconnect.v1.GitHubConfigH\x00\x12\\\n\x18github_enterprise_config\x18\r \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.GitHubEnterpriseConfigH\x00\x12G\n\rgitlab_config\x18\x0e \x01(\x0b\x32..google.cloud.developerconnect.v1.GitLabConfigH\x00\x12\\\n\x18gitlab_enterprise_config\x18\x10 \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.GitLabEnterpriseConfigH\x00\x12\x63\n\x1c\x62itbucket_data_center_config\x18\x11 \x01(\x0b\x32;.google.cloud.developerconnect.v1.BitbucketDataCenterConfigH\x00\x12X\n\x16\x62itbucket_cloud_config\x18\x12 \x01(\x0b\x32\x36.google.cloud.developerconnect.v1.BitbucketCloudConfigH\x00\x12t\n%secure_source_manager_instance_config\x18\x14 \x01(\x0b\x32\x43.google.cloud.developerconnect.v1.SecureSourceManagerInstanceConfigH\x00\x12W\n\x0bhttp_config\x18\x15 \x01(\x0b\x32;.google.cloud.developerconnect.v1.GenericHTTPEndpointConfigB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12M\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.cloud.developerconnect.v1.Connection.LabelsEntryB\x03\xe0\x41\x01\x12T\n\x12installation_state\x18\x06 \x01(\x0b\x32\x33.google.cloud.developerconnect.v1.InstallationStateB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0breconciling\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12W\n\x0b\x61nnotations\x18\t \x03(\x0b\x32=.google.cloud.developerconnect.v1.Connection.AnnotationsEntryB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x03uid\x18\x0c \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12Q\n\x11\x63rypto_key_config\x18\x0f \x01(\x0b\x32\x31.google.cloud.developerconnect.v1.CryptoKeyConfigB\x03\xe0\x41\x01\x12O\n\x10git_proxy_config\x18\x13 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.GitProxyConfigB\x03\xe0\x41\x01\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:\x8e\x01\xea\x41\x8a\x01\n*developerconnect.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}*\x0b\x63onnections2\nconnectionR\x01\x01\x42\x13\n\x11\x63onnection_config\"S\n\x0f\x43ryptoKeyConfig\x12@\n\rkey_reference\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"H\n\x0eGitProxyConfig\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13http_proxy_base_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\x88\x02\n\x11InstallationState\x12M\n\x05stage\x18\x01 \x01(\x0e\x32\x39.google.cloud.developerconnect.v1.InstallationState.StageB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\naction_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"u\n\x05Stage\x12\x15\n\x11STAGE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_CREATE_APP\x10\x01\x12\x16\n\x12PENDING_USER_OAUTH\x10\x02\x12\x17\n\x13PENDING_INSTALL_APP\x10\x03\x12\x0c\n\x08\x43OMPLETE\x10\n\"\xcc\x05\n\x19GenericHTTPEndpointConfig\x12t\n\x14\x62\x61sic_authentication\x18\x01 \x01(\x0b\x32O.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthenticationB\x03\xe0\x41\x01H\x00\x12\x81\x01\n\x1b\x62\x65\x61rer_token_authentication\x18\x02 \x01(\x0b\x32U.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthenticationB\x03\xe0\x41\x01H\x00\x12\x18\n\x08host_uri\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12_\n\x18service_directory_config\x18\x04 \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x1f\n\x12ssl_ca_certificate\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\x8c\x01\n\x13\x42\x61sicAuthentication\x12R\n\x17password_secret_version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x15\n\x08username\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\n\n\x08password\x1ax\n\x19\x42\x65\x61rerTokenAuthentication\x12R\n\x14token_secret_version\x18\x01 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x42\x07\n\x05tokenB\x10\n\x0e\x61uthentication\"\xe3\x02\n\x0cGitHubConfig\x12T\n\ngithub_app\x18\x01 \x01(\x0e\x32\x38.google.cloud.developerconnect.v1.GitHubConfig.GitHubAppB\x06\xe0\x41\x02\xe0\x41\x05\x12U\n\x15\x61uthorizer_credential\x18\x02 \x01(\x0b\x32\x31.google.cloud.developerconnect.v1.OAuthCredentialB\x03\xe0\x41\x01\x12 \n\x13\x61pp_installation_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10installation_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\"e\n\tGitHubApp\x12\x1b\n\x17GIT_HUB_APP_UNSPECIFIED\x10\x00\x12\x15\n\x11\x44\x45VELOPER_CONNECT\x10\x01\x12\x0c\n\x08\x46IREBASE\x10\x02\x12\x16\n\x12GEMINI_CODE_ASSIST\x10\x03\"\x8c\x04\n\x16GitHubEnterpriseConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x61pp_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x15\n\x08\x61pp_slug\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12V\n\x1aprivate_key_secret_version\x18\x04 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1dwebhook_secret_secret_version\x18\x05 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12 \n\x13\x61pp_installation_id\x18\x08 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10installation_uri\x18\t \x01(\tB\x03\xe0\x41\x03\x12_\n\x18service_directory_config\x18\n \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_version\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12ssl_ca_certificate\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0corganization\x18\x0f \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\"Z\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\x80\x01\n\x0fOAuthCredential\x12V\n\x1aoauth_token_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\x9d\x02\n\x0cGitLabConfig\x12\\\n\x1dwebhook_secret_secret_version\x18\x01 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x02 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\"~\n\x0eUserCredential\x12U\n\x19user_token_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xdd\x03\n\x16GitLabEnterpriseConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12_\n\x18service_directory_config\x18\x05 \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x1f\n\x12ssl_ca_certificate\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xe0\x03\n\x19\x42itbucketDataCenterConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12_\n\x18service_directory_config\x18\x05 \x01(\x0b\x32\x38.google.cloud.developerconnect.v1.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x1f\n\x12ssl_ca_certificate\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xbd\x02\n\x14\x42itbucketCloudConfig\x12\x16\n\tworkspace\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12Y\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\x12T\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32\x30.google.cloud.developerconnect.v1.UserCredentialB\x03\xe0\x41\x02\"m\n!SecureSourceManagerInstanceConfig\x12H\n\x08instance\x18\x01 \x01(\tB6\xe0\x41\x02\xe0\x41\x05\xfa\x41-\n+securesourcemanager.googleapis.com/Instance\"\xb9\x01\n\x16ListConnectionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*developerconnect.googleapis.com/Connection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8a\x01\n\x17ListConnectionsResponse\x12\x41\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32,.google.cloud.developerconnect.v1.Connection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x14GetConnectionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\"\xfd\x01\n\x17\x43reateConnectionRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*developerconnect.googleapis.com/Connection\x12\x1a\n\rconnection_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nconnection\x18\x03 \x01(\x0b\x32,.google.cloud.developerconnect.v1.ConnectionB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xef\x01\n\x17UpdateConnectionRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x45\n\nconnection\x18\x02 \x01(\x0b\x32,.google.cloud.developerconnect.v1.ConnectionB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xab\x01\n\x17\x44\x65leteConnectionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xc5\x01\n\x1cListAccountConnectorsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x64\x65veloperconnect.googleapis.com/AccountConnector\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9d\x01\n\x1dListAccountConnectorsResponse\x12N\n\x12\x61\x63\x63ount_connectors\x18\x01 \x03(\x0b\x32\x32.google.cloud.developerconnect.v1.AccountConnector\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"d\n\x1aGetAccountConnectorRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"\x9d\x02\n\x1d\x43reateAccountConnectorRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x64\x65veloperconnect.googleapis.com/AccountConnector\x12!\n\x14\x61\x63\x63ount_connector_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12R\n\x11\x61\x63\x63ount_connector\x18\x03 \x01(\x0b\x32\x32.google.cloud.developerconnect.v1.AccountConnectorB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x82\x02\n\x1dUpdateAccountConnectorRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12R\n\x11\x61\x63\x63ount_connector\x18\x02 \x01(\x0b\x32\x32.google.cloud.developerconnect.v1.AccountConnectorB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xcb\x01\n\x1d\x44\x65leteAccountConnectorRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x9f\x01\n\x11\x44\x65leteUserRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$developerconnect.googleapis.com/User\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"Z\n\x10\x46\x65tchSelfRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"[\n\x11\x44\x65leteSelfRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"n\n\x17\x46\x65tchAccessTokenRequest\x12S\n\x11\x61\x63\x63ount_connector\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"\xb7\x01\n\x18\x46\x65tchAccessTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06scopes\x18\x03 \x03(\t\x12G\n\x0e\x65xchange_error\x18\x04 \x01(\x0b\x32/.google.cloud.developerconnect.v1.ExchangeError\"h\n\x11StartOAuthRequest\x12S\n\x11\x61\x63\x63ount_connector\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\"\xe6\x01\n\x12StartOAuthResponse\x12N\n\x12system_provider_id\x18\x07 \x01(\x0e\x32\x30.google.cloud.developerconnect.v1.SystemProviderH\x00\x12\x0e\n\x06ticket\x18\x01 \x01(\t\x12\x16\n\x0e\x63ode_challenge\x18\x02 \x01(\t\x12\x1d\n\x15\x63ode_challenge_method\x18\x03 \x01(\t\x12\x11\n\tclient_id\x18\x04 \x01(\t\x12\x0e\n\x06scopes\x18\x05 \x03(\t\x12\x10\n\x08\x61uth_uri\x18\x06 \x01(\tB\x04\n\x02id\"\xc5\x03\n\x12\x46inishOAuthRequest\x12X\n\x0coauth_params\x18\x02 \x01(\x0b\x32@.google.cloud.developerconnect.v1.FinishOAuthRequest.OAuthParamsH\x00\x12\x65\n\x13google_oauth_params\x18\x03 \x01(\x0b\x32\x46.google.cloud.developerconnect.v1.FinishOAuthRequest.GoogleOAuthParamsH\x00\x12S\n\x11\x61\x63\x63ount_connector\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0developerconnect.googleapis.com/AccountConnector\x1a\x35\n\x0bOAuthParams\x12\x11\n\x04\x63ode\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06ticket\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1aX\n\x11GoogleOAuthParams\x12\x13\n\x06scopes\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x19\n\x0cversion_info\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06ticket\x18\x03 \x01(\tB\x03\xe0\x41\x02\x42\x08\n\x06params\"^\n\x13\x46inishOAuthResponse\x12G\n\x0e\x65xchange_error\x18\x01 \x01(\x0b\x32/.google.cloud.developerconnect.v1.ExchangeError\"2\n\rExchangeError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"\xc4\x06\n\x11GitRepositoryLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x16\n\tclone_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12T\n\x06labels\x18\x06 \x03(\x0b\x32?.google.cloud.developerconnect.v1.GitRepositoryLink.LabelsEntryB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0breconciling\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12^\n\x0b\x61nnotations\x18\t \x03(\x0b\x32\x44.google.cloud.developerconnect.v1.GitRepositoryLink.AnnotationsEntryB\x03\xe0\x41\x01\x12\x18\n\x03uid\x18\n \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x17\n\nwebhook_id\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rgit_proxy_uri\x18\x0c \x01(\tB\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:\xcc\x01\xea\x41\xc8\x01\n1developerconnect.googleapis.com/GitRepositoryLink\x12iprojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}*\x12gitRepositoryLinks2\x11gitRepositoryLinkR\x01\x01\"\xa4\x02\n\x1e\x43reateGitRepositoryLinkRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31\x64\x65veloperconnect.googleapis.com/GitRepositoryLink\x12U\n\x13git_repository_link\x18\x02 \x01(\x0b\x32\x33.google.cloud.developerconnect.v1.GitRepositoryLinkB\x03\xe0\x41\x02\x12#\n\x16git_repository_link_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xb9\x01\n\x1e\x44\x65leteGitRepositoryLinkRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xc7\x01\n\x1dListGitRepositoryLinksRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31\x64\x65veloperconnect.googleapis.com/GitRepositoryLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa1\x01\n\x1eListGitRepositoryLinksResponse\x12Q\n\x14git_repository_links\x18\x01 \x03(\x0b\x32\x33.google.cloud.developerconnect.v1.GitRepositoryLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"f\n\x1bGetGitRepositoryLinkRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\"t\n\x1a\x46\x65tchReadWriteTokenRequest\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\"o\n\x15\x46\x65tchReadTokenRequest\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\"r\n\x16\x46\x65tchReadTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cgit_username\x18\x03 \x01(\t\"w\n\x1b\x46\x65tchReadWriteTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cgit_username\x18\x03 \x01(\t\"\x9e\x01\n#FetchLinkableGitRepositoriesRequest\x12\x46\n\nconnection\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n$FetchLinkableGitRepositoriesResponse\x12Z\n\x19linkable_git_repositories\x18\x01 \x03(\x0b\x32\x37.google.cloud.developerconnect.v1.LinkableGitRepository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"*\n\x15LinkableGitRepository\x12\x11\n\tclone_uri\x18\x01 \x01(\t\"i\n\x1f\x46\x65tchGitHubInstallationsRequest\x12\x46\n\nconnection\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*developerconnect.googleapis.com/Connection\"\xc2\x01\n FetchGitHubInstallationsResponse\x12\x66\n\rinstallations\x18\x01 \x03(\x0b\x32O.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation\x1a\x36\n\x0cInstallation\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\"\xae\x02\n\x13\x46\x65tchGitRefsRequest\x12V\n\x13git_repository_link\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1developerconnect.googleapis.com/GitRepositoryLink\x12T\n\x08ref_type\x18\x02 \x01(\x0e\x32=.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefTypeB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"8\n\x07RefType\x12\x18\n\x14REF_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03TAG\x10\x01\x12\n\n\x06\x42RANCH\x10\x02\"B\n\x14\x46\x65tchGitRefsResponse\x12\x11\n\tref_names\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x06\n\x10\x41\x63\x63ountConnector\x12[\n\x15provider_oauth_config\x18\x05 \x01(\x0b\x32\x35.google.cloud.developerconnect.v1.ProviderOAuthConfigB\x03\xe0\x41\x01H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12]\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32\x43.google.cloud.developerconnect.v1.AccountConnector.AnnotationsEntryB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12S\n\x06labels\x18\x08 \x03(\x0b\x32>.google.cloud.developerconnect.v1.AccountConnector.LabelsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0foauth_start_uri\x18\n \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xad\x01\xea\x41\xa9\x01\n0developerconnect.googleapis.com/AccountConnector\x12Mprojects/{project}/locations/{location}/accountConnectors/{account_connector}*\x11\x61\x63\x63ountConnectors2\x10\x61\x63\x63ountConnectorR\x01\x01\x42\x1a\n\x18\x61\x63\x63ount_connector_config\"\xc2\x02\n\x04User\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x17last_token_request_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x93\x01\xea\x41\x8f\x01\n$developerconnect.googleapis.com/User\x12Zprojects/{project}/locations/{location}/accountConnectors/{account_connector}/users/{user}*\x05users2\x04user\"\x97\x01\n\x13ProviderOAuthConfig\x12V\n\x12system_provider_id\x18\x01 \x01(\x0e\x32\x30.google.cloud.developerconnect.v1.SystemProviderB\x06\xe0\x41\x05\xe0\x41\x01H\x00\x12\x13\n\x06scopes\x18\x02 \x03(\tB\x03\xe0\x41\x02\x42\x13\n\x11oauth_provider_id*\x97\x01\n\x0eSystemProvider\x12\x1f\n\x1bSYSTEM_PROVIDER_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\x01\x12\n\n\x06GITLAB\x10\x02\x12\n\n\x06GOOGLE\x10\x03\x12\n\n\x06SENTRY\x10\x04\x12\x08\n\x04ROVO\x10\x05\x12\r\n\tNEW_RELIC\x10\x06\x12\x0c\n\x08\x44\x41TASTAX\x10\x07\x12\r\n\tDYNATRACE\x10\x08\x32\xcb\x32\n\x10\x44\x65veloperConnect\x12\xc8\x01\n\x0fListConnections\x12\x38.google.cloud.developerconnect.v1.ListConnectionsRequest\x1a\x39.google.cloud.developerconnect.v1.ListConnectionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/connections\x12\xb5\x01\n\rGetConnection\x12\x36.google.cloud.developerconnect.v1.GetConnectionRequest\x1a,.google.cloud.developerconnect.v1.Connection\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/connections/*}\x12\xf6\x01\n\x10\x43reateConnection\x12\x39.google.cloud.developerconnect.v1.CreateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1f\n\nConnection\x12\x11OperationMetadata\xda\x41\x1fparent,connection,connection_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/connections:\nconnection\x12\xf8\x01\n\x10UpdateConnection\x12\x39.google.cloud.developerconnect.v1.UpdateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1f\n\nConnection\x12\x11OperationMetadata\xda\x41\x16\x63onnection,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{connection.name=projects/*/locations/*/connections/*}:\nconnection\x12\xd9\x01\n\x10\x44\x65leteConnection\x12\x39.google.cloud.developerconnect.v1.DeleteConnectionRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/connections/*}\x12\xbb\x02\n\x17\x43reateGitRepositoryLink\x12@.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest\x1a\x1d.google.longrunning.Operation\"\xbe\x01\xca\x41&\n\x11GitRepositoryLink\x12\x11OperationMetadata\xda\x41\x31parent,git_repository_link,git_repository_link_id\x82\xd3\xe4\x93\x02[\"D/v1/{parent=projects/*/locations/*/connections/*}/gitRepositoryLinks:\x13git_repository_link\x12\xfd\x01\n\x17\x44\x65leteGitRepositoryLink\x12@.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46*D/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}\x12\xf2\x01\n\x16ListGitRepositoryLinks\x12?.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest\x1a@.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{parent=projects/*/locations/*/connections/*}/gitRepositoryLinks\x12\xdf\x01\n\x14GetGitRepositoryLink\x12=.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest\x1a\x33.google.cloud.developerconnect.v1.GitRepositoryLink\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}\x12\x9d\x02\n\x13\x46\x65tchReadWriteToken\x12<.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest\x1a=.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse\"\x88\x01\xda\x41\x13git_repository_link\x82\xd3\xe4\x93\x02l\"g/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchReadWriteToken:\x01*\x12\x89\x02\n\x0e\x46\x65tchReadToken\x12\x37.google.cloud.developerconnect.v1.FetchReadTokenRequest\x1a\x38.google.cloud.developerconnect.v1.FetchReadTokenResponse\"\x83\x01\xda\x41\x13git_repository_link\x82\xd3\xe4\x93\x02g\"b/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchReadToken:\x01*\x12\x96\x02\n\x1c\x46\x65tchLinkableGitRepositories\x12\x45.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest\x1a\x46.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse\"g\xda\x41\nconnection\x82\xd3\xe4\x93\x02T\x12R/v1/{connection=projects/*/locations/*/connections/*}:fetchLinkableGitRepositories\x12\x86\x02\n\x18\x46\x65tchGitHubInstallations\x12\x41.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest\x1a\x42.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse\"c\xda\x41\nconnection\x82\xd3\xe4\x93\x02P\x12N/v1/{connection=projects/*/locations/*/connections/*}:fetchGitHubInstallations\x12\x87\x02\n\x0c\x46\x65tchGitRefs\x12\x35.google.cloud.developerconnect.v1.FetchGitRefsRequest\x1a\x36.google.cloud.developerconnect.v1.FetchGitRefsResponse\"\x87\x01\xda\x41\x1cgit_repository_link,ref_type\x82\xd3\xe4\x93\x02\x62\x12`/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchGitRefs\x12\xe0\x01\n\x15ListAccountConnectors\x12>.google.cloud.developerconnect.v1.ListAccountConnectorsRequest\x1a?.google.cloud.developerconnect.v1.ListAccountConnectorsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{parent=projects/*/locations/*}/accountConnectors\x12\xcd\x01\n\x13GetAccountConnector\x12<.google.cloud.developerconnect.v1.GetAccountConnectorRequest\x1a\x32.google.cloud.developerconnect.v1.AccountConnector\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/accountConnectors/*}\x12\xa3\x02\n\x16\x43reateAccountConnector\x12?.google.cloud.developerconnect.v1.CreateAccountConnectorRequest\x1a\x1d.google.longrunning.Operation\"\xa8\x01\xca\x41%\n\x10\x41\x63\x63ountConnector\x12\x11OperationMetadata\xda\x41-parent,account_connector,account_connector_id\x82\xd3\xe4\x93\x02J\"5/v1/{parent=projects/*/locations/*}/accountConnectors:\x11\x61\x63\x63ount_connector\x12\xa5\x02\n\x16UpdateAccountConnector\x12?.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\xca\x41%\n\x10\x41\x63\x63ountConnector\x12\x11OperationMetadata\xda\x41\x1d\x61\x63\x63ount_connector,update_mask\x82\xd3\xe4\x93\x02\\2G/v1/{account_connector.name=projects/*/locations/*/accountConnectors/*}:\x11\x61\x63\x63ount_connector\x12\xeb\x01\n\x16\x44\x65leteAccountConnector\x12?.google.cloud.developerconnect.v1.DeleteAccountConnectorRequest\x1a\x1d.google.longrunning.Operation\"q\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1/{name=projects/*/locations/*/accountConnectors/*}\x12\x83\x02\n\x10\x46\x65tchAccessToken\x12\x39.google.cloud.developerconnect.v1.FetchAccessTokenRequest\x1a:.google.cloud.developerconnect.v1.FetchAccessTokenResponse\"x\xda\x41\x11\x61\x63\x63ount_connector\x82\xd3\xe4\x93\x02^\"Y/v1/{account_connector=projects/*/locations/*/accountConnectors/*}/users:fetchAccessToken:\x01*\x12\xc4\x01\n\tListUsers\x12\x32.google.cloud.developerconnect.v1.ListUsersRequest\x1a\x33.google.cloud.developerconnect.v1.ListUsersResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/accountConnectors/*}/users\x12\xdb\x01\n\nDeleteUser\x12\x33.google.cloud.developerconnect.v1.DeleteUserRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/accountConnectors/*/users/*}\x12\xbd\x01\n\tFetchSelf\x12\x32.google.cloud.developerconnect.v1.FetchSelfRequest\x1a&.google.cloud.developerconnect.v1.User\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/accountConnectors/*}/users:fetchSelf\x12\xe5\x01\n\nDeleteSelf\x12\x33.google.cloud.developerconnect.v1.DeleteSelfRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/accountConnectors/*}/users:deleteSelf\x12\xec\x01\n\nStartOAuth\x12\x33.google.cloud.developerconnect.v1.StartOAuthRequest\x1a\x34.google.cloud.developerconnect.v1.StartOAuthResponse\"s\xda\x41\x11\x61\x63\x63ount_connector\x82\xd3\xe4\x93\x02Y\x12W/v1/{account_connector=projects/*/locations/*/accountConnectors/*}/users:startOAuthFlow\x12\xf0\x01\n\x0b\x46inishOAuth\x12\x34.google.cloud.developerconnect.v1.FinishOAuthRequest\x1a\x35.google.cloud.developerconnect.v1.FinishOAuthResponse\"t\xda\x41\x11\x61\x63\x63ount_connector\x82\xd3\xe4\x93\x02Z\x12X/v1/{account_connector=projects/*/locations/*/accountConnectors/*}/users:finishOAuthFlow\x1aS\xca\x41\x1f\x64\x65veloperconnect.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbb\x06\n$com.google.cloud.developerconnect.v1B\x15\x44\x65veloperConnectProtoP\x01ZPcloud.google.com/go/developerconnect/apiv1/developerconnectpb;developerconnectpb\xa2\x02\x10\x44\x65veloperConnect\xaa\x02 Google.Cloud.DeveloperConnect.V1\xca\x02 Google\\Cloud\\DeveloperConnect\\V1\xea\x02#Google::Cloud::DeveloperConnect::V1\xea\x41\xbf\x01\n*secretmanager.googleapis.com/SecretVersion\x12=projects/{project}/secrets/{secret}/versions/{secret_version}\x12Rprojects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}\xea\x41k\n+securesourcemanager.googleapis.com/Instance\x12.google.cloud.developerconnect.v1.ListDeploymentEventsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/insightsConfigs/*}/deploymentEvents\x1aS\xca\x41\x1f\x64\x65veloperconnect.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd5\x01\n$com.google.cloud.developerconnect.v1B\x13InsightsConfigProtoP\x01ZPcloud.google.com/go/developerconnect/apiv1/developerconnectpb;developerconnectpb\xaa\x02 Google.Cloud.DeveloperConnect.V1\xca\x02 Google\\Cloud\\DeveloperConnect\\V1b\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -50,13 +50,22 @@ module Developerconnect module V1 InsightsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.InsightsConfig").msgclass InsightsConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.InsightsConfig.State").enummodule + Projects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.Projects").msgclass RuntimeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.RuntimeConfig").msgclass RuntimeConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.RuntimeConfig.State").enummodule GKEWorkload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.GKEWorkload").msgclass + GoogleCloudRun = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.GoogleCloudRun").msgclass AppHubWorkload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.AppHubWorkload").msgclass + AppHubService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.AppHubService").msgclass ArtifactConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.ArtifactConfig").msgclass GoogleArtifactAnalysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.GoogleArtifactAnalysis").msgclass GoogleArtifactRegistry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.GoogleArtifactRegistry").msgclass + DeploymentEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.DeploymentEvent").msgclass + DeploymentEvent::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.DeploymentEvent.State").enummodule + GetDeploymentEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.GetDeploymentEventRequest").msgclass + ListDeploymentEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.ListDeploymentEventsRequest").msgclass + ListDeploymentEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.ListDeploymentEventsResponse").msgclass + ArtifactDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.ArtifactDeployment").msgclass CreateInsightsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.CreateInsightsConfigRequest").msgclass GetInsightsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.GetInsightsConfigRequest").msgclass ListInsightsConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.developerconnect.v1.ListInsightsConfigsRequest").msgclass diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service.rb index 54b6cac20165..d107015a6797 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service.rb @@ -37,7 +37,7 @@ module V1 # # The InsightsConfig resource is the core configuration object to capture # events from your Software Development Lifecycle. It acts as the central hub - # for managing how Developer connect understands your application, its runtime + # for managing how Developer Connect understands your application, its runtime # environments, and the artifacts deployed within them. # A user can create an InsightsConfig, list previously-requested # InsightsConfigs or get InsightsConfigs by their ID to determine the status of diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/client.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/client.rb index a04d87621a71..d8fede737e38 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/client.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/client.rb @@ -32,7 +32,7 @@ module InsightsConfigService # # The InsightsConfig resource is the core configuration object to capture # events from your Software Development Lifecycle. It acts as the central hub - # for managing how Developer connect understands your application, its runtime + # for managing how Developer Connect understands your application, its runtime # environments, and the artifacts deployed within them. # A user can create an InsightsConfig, list previously-requested # InsightsConfigs or get InsightsConfigs by their ID to determine the status of @@ -626,7 +626,7 @@ def update_insights_config request, options = nil end ## - # Delete a single Insight. + # Deletes a single Insight. # # @overload delete_insights_config(request, options = nil) # Pass arguments to `delete_insights_config` via a request object, either of type @@ -739,6 +739,200 @@ def delete_insights_config request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Gets a single Deployment Event. + # + # @overload get_deployment_event(request, options = nil) + # Pass arguments to `get_deployment_event` via a request object, either of type + # {::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest, ::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_deployment_event(name: nil) + # Pass arguments to `get_deployment_event` 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 name of the deployment event to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config}/deploymentEvents/\\{uuid} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Developerconnect::V1::DeploymentEvent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Developerconnect::V1::DeploymentEvent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Developerconnect::V1::InsightsConfigService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest.new + # + # # Call the get_deployment_event method. + # result = client.get_deployment_event request + # + # # The returned object is of type Google::Cloud::Developerconnect::V1::DeploymentEvent. + # p result + # + def get_deployment_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest + + # 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_deployment_event.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::DeveloperConnect::V1::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_deployment_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_deployment_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @insights_config_service_stub.call_rpc :get_deployment_event, 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 + + ## + # Lists Deployment Events in a given insights config. + # + # @overload list_deployment_events(request, options = nil) + # Pass arguments to `list_deployment_events` via a request object, either of type + # {::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest, ::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_deployment_events(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_deployment_events` 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 insights config that owns this collection of + # deployment events. Format: + # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config} + # @param page_size [::Integer] + # Optional. The maximum number of deployment events to return. The service + # may return fewer than this value. If unspecified, at most 50 deployment + # events will be returned. The maximum value is 1000; values above 1000 will + # be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListDeploymentEvents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDeploymentEvents` + # must match the call that provided the page token. + # @param filter [::String] + # Optional. Filter expression that matches a subset of the DeploymentEvents. + # https://google.aip.dev/160. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Developerconnect::V1::DeploymentEvent>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Developerconnect::V1::DeploymentEvent>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Developerconnect::V1::InsightsConfigService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest.new + # + # # Call the list_deployment_events method. + # result = client.list_deployment_events 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::Developerconnect::V1::DeploymentEvent. + # p item + # end + # + def list_deployment_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest + + # 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_deployment_events.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::DeveloperConnect::V1::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_deployment_events.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_deployment_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @insights_config_service_stub.call_rpc :list_deployment_events, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @insights_config_service_stub, :list_deployment_events, 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 + ## # Configuration class for the InsightsConfigService API. # @@ -947,6 +1141,16 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :delete_insights_config + ## + # RPC-specific configuration for `get_deployment_event` + # @return [::Gapic::Config::Method] + # + attr_reader :get_deployment_event + ## + # RPC-specific configuration for `list_deployment_events` + # @return [::Gapic::Config::Method] + # + attr_reader :list_deployment_events # @private def initialize parent_rpcs = nil @@ -960,6 +1164,10 @@ def initialize parent_rpcs = nil @update_insights_config = ::Gapic::Config::Method.new update_insights_config_config delete_insights_config_config = parent_rpcs.delete_insights_config if parent_rpcs.respond_to? :delete_insights_config @delete_insights_config = ::Gapic::Config::Method.new delete_insights_config_config + get_deployment_event_config = parent_rpcs.get_deployment_event if parent_rpcs.respond_to? :get_deployment_event + @get_deployment_event = ::Gapic::Config::Method.new get_deployment_event_config + list_deployment_events_config = parent_rpcs.list_deployment_events if parent_rpcs.respond_to? :list_deployment_events + @list_deployment_events = ::Gapic::Config::Method.new list_deployment_events_config yield self if block_given? end diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb index 81463ad592ee..5143676aa284 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb @@ -24,6 +24,27 @@ module V1 module InsightsConfigService # Path helper methods for the InsightsConfigService API. module Paths + ## + # Create a fully-qualified DeploymentEvent resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{deployment_event}` + # + # @param project [String] + # @param location [String] + # @param insights_config [String] + # @param deployment_event [String] + # + # @return [::String] + def deployment_event_path project:, location:, insights_config:, deployment_event: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "insights_config cannot contain /" if insights_config.to_s.include? "/" + + "projects/#{project}/locations/#{location}/insightsConfigs/#{insights_config}/deploymentEvents/#{deployment_event}" + end + ## # Create a fully-qualified InsightsConfig resource string. # diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb index fc6f250374d0..0f78850a39ba 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb @@ -37,7 +37,7 @@ module V1 # # The InsightsConfig resource is the core configuration object to capture # events from your Software Development Lifecycle. It acts as the central hub - # for managing how Developer connect understands your application, its runtime + # for managing how Developer Connect understands your application, its runtime # environments, and the artifacts deployed within them. # A user can create an InsightsConfig, list previously-requested # InsightsConfigs or get InsightsConfigs by their ID to determine the status of diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb index 3278319a8bc4..1c5b68763790 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb @@ -34,7 +34,7 @@ module Rest # # The InsightsConfig resource is the core configuration object to capture # events from your Software Development Lifecycle. It acts as the central hub - # for managing how Developer connect understands your application, its runtime + # for managing how Developer Connect understands your application, its runtime # environments, and the artifacts deployed within them. # A user can create an InsightsConfig, list previously-requested # InsightsConfigs or get InsightsConfigs by their ID to determine the status of @@ -592,7 +592,7 @@ def update_insights_config request, options = nil end ## - # Delete a single Insight. + # Deletes a single Insight. # # @overload delete_insights_config(request, options = nil) # Pass arguments to `delete_insights_config` via a request object, either of type @@ -698,6 +698,186 @@ def delete_insights_config request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Gets a single Deployment Event. + # + # @overload get_deployment_event(request, options = nil) + # Pass arguments to `get_deployment_event` via a request object, either of type + # {::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest, ::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_deployment_event(name: nil) + # Pass arguments to `get_deployment_event` 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 name of the deployment event to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config}/deploymentEvents/\\{uuid} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Developerconnect::V1::DeploymentEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Developerconnect::V1::DeploymentEvent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Developerconnect::V1::InsightsConfigService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest.new + # + # # Call the get_deployment_event method. + # result = client.get_deployment_event request + # + # # The returned object is of type Google::Cloud::Developerconnect::V1::DeploymentEvent. + # p result + # + def get_deployment_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest + + # 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_deployment_event.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::DeveloperConnect::V1::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_deployment_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_deployment_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @insights_config_service_stub.get_deployment_event 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 + + ## + # Lists Deployment Events in a given insights config. + # + # @overload list_deployment_events(request, options = nil) + # Pass arguments to `list_deployment_events` via a request object, either of type + # {::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest, ::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_deployment_events(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_deployment_events` 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 insights config that owns this collection of + # deployment events. Format: + # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config} + # @param page_size [::Integer] + # Optional. The maximum number of deployment events to return. The service + # may return fewer than this value. If unspecified, at most 50 deployment + # events will be returned. The maximum value is 1000; values above 1000 will + # be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListDeploymentEvents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDeploymentEvents` + # must match the call that provided the page token. + # @param filter [::String] + # Optional. Filter expression that matches a subset of the DeploymentEvents. + # https://google.aip.dev/160. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Developerconnect::V1::DeploymentEvent>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Developerconnect::V1::DeploymentEvent>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/developer_connect/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Developerconnect::V1::InsightsConfigService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest.new + # + # # Call the list_deployment_events method. + # result = client.list_deployment_events 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::Developerconnect::V1::DeploymentEvent. + # p item + # end + # + def list_deployment_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest + + # 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_deployment_events.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::DeveloperConnect::V1::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_deployment_events.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_deployment_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @insights_config_service_stub.list_deployment_events request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @insights_config_service_stub, :list_deployment_events, "deployment_events", 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 + ## # Configuration class for the InsightsConfigService REST API. # @@ -876,6 +1056,16 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :delete_insights_config + ## + # RPC-specific configuration for `get_deployment_event` + # @return [::Gapic::Config::Method] + # + attr_reader :get_deployment_event + ## + # RPC-specific configuration for `list_deployment_events` + # @return [::Gapic::Config::Method] + # + attr_reader :list_deployment_events # @private def initialize parent_rpcs = nil @@ -889,6 +1079,10 @@ def initialize parent_rpcs = nil @update_insights_config = ::Gapic::Config::Method.new update_insights_config_config delete_insights_config_config = parent_rpcs.delete_insights_config if parent_rpcs.respond_to? :delete_insights_config @delete_insights_config = ::Gapic::Config::Method.new delete_insights_config_config + get_deployment_event_config = parent_rpcs.get_deployment_event if parent_rpcs.respond_to? :get_deployment_event + @get_deployment_event = ::Gapic::Config::Method.new get_deployment_event_config + list_deployment_events_config = parent_rpcs.list_deployment_events if parent_rpcs.respond_to? :list_deployment_events + @list_deployment_events = ::Gapic::Config::Method.new list_deployment_events_config yield self if block_given? end diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb index e51c2ace0801..40f8de75c850 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb @@ -273,6 +273,86 @@ def delete_insights_config request_pb, options = nil end end + ## + # Baseline implementation for the get_deployment_event REST call + # + # @param request_pb [::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest] + # 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::Developerconnect::V1::DeploymentEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Developerconnect::V1::DeploymentEvent] + # A result object deserialized from the server's reply + def get_deployment_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_deployment_event_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_deployment_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Developerconnect::V1::DeploymentEvent.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_deployment_events REST call + # + # @param request_pb [::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest] + # 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::Developerconnect::V1::ListDeploymentEventsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Developerconnect::V1::ListDeploymentEventsResponse] + # A result object deserialized from the server's reply + def list_deployment_events request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_deployment_events_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_deployment_events", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # @private # @@ -379,6 +459,48 @@ def self.transcode_delete_insights_config_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the get_deployment_event REST call + # + # @param request_pb [::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest] + # 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_deployment_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/insightsConfigs/[^/]+/deploymentEvents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_deployment_events REST call + # + # @param request_pb [::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest] + # 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_deployment_events_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/deploymentEvents", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/insightsConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb index bdba72420b8f..9203835e19ec 100644 --- a/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb +++ b/google-cloud-developer_connect-v1/lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb @@ -28,7 +28,7 @@ module InsightsConfigService # # The InsightsConfig resource is the core configuration object to capture # events from your Software Development Lifecycle. It acts as the central hub - # for managing how Developer connect understands your application, its runtime + # for managing how Developer Connect understands your application, its runtime # environments, and the artifacts deployed within them. # A user can create an InsightsConfig, list previously-requested # InsightsConfigs or get InsightsConfigs by their ID to determine the status of @@ -49,8 +49,12 @@ class Service rpc :GetInsightsConfig, ::Google::Cloud::Developerconnect::V1::GetInsightsConfigRequest, ::Google::Cloud::Developerconnect::V1::InsightsConfig # Updates the parameters of a single InsightsConfig. rpc :UpdateInsightsConfig, ::Google::Cloud::Developerconnect::V1::UpdateInsightsConfigRequest, ::Google::Longrunning::Operation - # Delete a single Insight. + # Deletes a single Insight. rpc :DeleteInsightsConfig, ::Google::Cloud::Developerconnect::V1::DeleteInsightsConfigRequest, ::Google::Longrunning::Operation + # Gets a single Deployment Event. + rpc :GetDeploymentEvent, ::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest, ::Google::Cloud::Developerconnect::V1::DeploymentEvent + # Lists Deployment Events in a given insights config. + rpc :ListDeploymentEvents, ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest, ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsResponse end Stub = Service.rpc_stub_class diff --git a/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb b/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb index 7b74b09c71e6..ac6ea2998f0b 100644 --- a/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb +++ b/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb @@ -63,32 +63,42 @@ class ListUsersResponse # @return [::Google::Cloud::DeveloperConnect::V1::GitHubConfig] # Configuration for connections to github.com. # - # Note: The following fields are mutually exclusive: `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] github_enterprise_config # @return [::Google::Cloud::DeveloperConnect::V1::GitHubEnterpriseConfig] # Configuration for connections to an instance of GitHub Enterprise. # - # Note: The following fields are mutually exclusive: `github_enterprise_config`, `github_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `github_enterprise_config`, `github_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] gitlab_config # @return [::Google::Cloud::DeveloperConnect::V1::GitLabConfig] # Configuration for connections to gitlab.com. # - # Note: The following fields are mutually exclusive: `gitlab_config`, `github_config`, `github_enterprise_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `gitlab_config`, `github_config`, `github_enterprise_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] gitlab_enterprise_config # @return [::Google::Cloud::DeveloperConnect::V1::GitLabEnterpriseConfig] # Configuration for connections to an instance of GitLab Enterprise. # - # Note: The following fields are mutually exclusive: `gitlab_enterprise_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `gitlab_enterprise_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bitbucket_data_center_config # @return [::Google::Cloud::DeveloperConnect::V1::BitbucketDataCenterConfig] # Configuration for connections to an instance of Bitbucket Data Center. # - # Note: The following fields are mutually exclusive: `bitbucket_data_center_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_cloud_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `bitbucket_data_center_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bitbucket_cloud_config # @return [::Google::Cloud::DeveloperConnect::V1::BitbucketCloudConfig] # Configuration for connections to an instance of Bitbucket Clouds. # - # Note: The following fields are mutually exclusive: `bitbucket_cloud_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # Note: The following fields are mutually exclusive: `bitbucket_cloud_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `secure_source_manager_instance_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] secure_source_manager_instance_config + # @return [::Google::Cloud::DeveloperConnect::V1::SecureSourceManagerInstanceConfig] + # Configuration for connections to an instance of Secure Source Manager. + # + # Note: The following fields are mutually exclusive: `secure_source_manager_instance_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `http_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] http_config + # @return [::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig] + # Optional. Configuration for connections to an HTTP service provider. + # + # Note: The following fields are mutually exclusive: `http_config`, `github_config`, `github_enterprise_config`, `gitlab_config`, `gitlab_enterprise_config`, `bitbucket_data_center_config`, `bitbucket_cloud_config`, `secure_source_manager_instance_config`. 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 of the connection, in the format @@ -177,6 +187,14 @@ class CryptoKeyConfig # @return [::Boolean] # Optional. Setting this to true allows the git proxy to be used for # performing git operations on the repositories linked in the connection. + # @!attribute [r] http_proxy_base_uri + # @return [::String] + # Output only. The base URI for the HTTP proxy endpoint. Has + # the format + # `https://{generatedID}-c-h-{shortRegion}.developerconnect.dev` + # Populated only when enabled is set to true. + # This endpoint is used by other Google services that integrate with + # Developer Connect. class GitProxyConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -220,6 +238,57 @@ module Stage end end + # Defines the configuration for connections to an HTTP service provider. + # @!attribute [rw] basic_authentication + # @return [::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BasicAuthentication] + # Optional. Basic authentication with username and password. + # + # Note: The following fields are mutually exclusive: `basic_authentication`, `bearer_token_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bearer_token_authentication + # @return [::Google::Cloud::DeveloperConnect::V1::GenericHTTPEndpointConfig::BearerTokenAuthentication] + # Optional. Bearer token authentication with a token. + # + # Note: The following fields are mutually exclusive: `bearer_token_authentication`, `basic_authentication`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] host_uri + # @return [::String] + # Required. Immutable. The service provider's https endpoint. + # @!attribute [rw] service_directory_config + # @return [::Google::Cloud::DeveloperConnect::V1::ServiceDirectoryConfig] + # Optional. Configuration for using Service Directory to privately connect to + # a HTTP service provider. This should only be set if the Http service + # provider is hosted on-premises and not reachable by public internet. If + # this field is left empty, calls to the HTTP service provider will be made + # over the public internet. + # @!attribute [rw] ssl_ca_certificate + # @return [::String] + # Optional. The SSL certificate to use for requests to the HTTP service + # provider. + class GenericHTTPEndpointConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Basic authentication with username and password. + # @!attribute [rw] password_secret_version + # @return [::String] + # The password SecretManager secret version to authenticate as. + # @!attribute [rw] username + # @return [::String] + # Required. The username to authenticate as. + class BasicAuthentication + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Bearer token authentication with a token. + # @!attribute [rw] token_secret_version + # @return [::String] + # Optional. The token SecretManager secret version to authenticate as. + class BearerTokenAuthentication + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + # Configuration for connections to github.com. # @!attribute [rw] github_app # @return [::Google::Cloud::DeveloperConnect::V1::GitHubConfig::GitHubApp] @@ -252,6 +321,9 @@ module GitHubApp # The Firebase GitHub Application. FIREBASE = 2 + + # The Gemini Code Assist Application. + GEMINI_CODE_ASSIST = 3 end end @@ -268,11 +340,15 @@ module GitHubApp # @!attribute [rw] private_key_secret_version # @return [::String] # Optional. SecretManager resource containing the private key of the GitHub - # App, formatted as `projects/*/secrets/*/versions/*`. + # App, formatted as `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). # @!attribute [rw] webhook_secret_secret_version # @return [::String] # Optional. SecretManager resource containing the webhook secret of the - # GitHub App, formatted as `projects/*/secrets/*/versions/*`. + # GitHub App, formatted as `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). # @!attribute [rw] app_installation_id # @return [::Integer] # Optional. ID of the installation of the GitHub App. @@ -293,6 +369,10 @@ module GitHubApp # @!attribute [rw] ssl_ca_certificate # @return [::String] # Optional. SSL certificate to use for requests to GitHub Enterprise. + # @!attribute [rw] organization + # @return [::String] + # Optional. Immutable. GitHub Enterprise organization in which the GitHub App + # is created. class GitHubEnterpriseConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -315,7 +395,9 @@ class ServiceDirectoryConfig # @!attribute [rw] oauth_token_secret_version # @return [::String] # Required. A SecretManager resource containing the OAuth token that - # authorizes the connection. Format: `projects/*/secrets/*/versions/*`. + # authorizes the connection. Format: `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). # @!attribute [r] username # @return [::String] # Output only. The username associated with this token. @@ -328,8 +410,9 @@ class OAuthCredential # @!attribute [rw] webhook_secret_secret_version # @return [::String] # Required. Immutable. SecretManager resource containing the webhook secret - # of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This - # is used to validate webhooks. + # of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). This is used to validate webhooks. # @!attribute [rw] read_authorizer_credential # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential] # Required. A GitLab personal access token with the minimum `read_api` scope @@ -353,7 +436,9 @@ class GitLabConfig # @return [::String] # Required. A SecretManager resource containing the user token that # authorizes the Developer Connect connection. Format: - # `projects/*/secrets/*/versions/*`. + # `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). # @!attribute [r] username # @return [::String] # Output only. The username associated with this token. @@ -369,8 +454,9 @@ class UserCredential # @!attribute [rw] webhook_secret_secret_version # @return [::String] # Required. Immutable. SecretManager resource containing the webhook secret - # of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This - # is used to validate webhooks. + # of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). This is used to validate webhooks. # @!attribute [rw] read_authorizer_credential # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential] # Required. A GitLab personal access token with the minimum `read_api` scope @@ -411,7 +497,9 @@ class GitLabEnterpriseConfig # @return [::String] # Required. Immutable. SecretManager resource containing the webhook secret # used to verify webhook events, formatted as - # `projects/*/secrets/*/versions/*`. This is used to validate webhooks. + # `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). This is used to validate webhooks. # @!attribute [rw] read_authorizer_credential # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential] # Required. An http access token with the minimum `Repository read` access. @@ -450,8 +538,9 @@ class BitbucketDataCenterConfig # @return [::String] # Required. Immutable. SecretManager resource containing the webhook secret # used to verify webhook events, formatted as - # `projects/*/secrets/*/versions/*`. This is used to validate and create - # webhooks. + # `projects/*/secrets/*/versions/*` or + # `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are + # supported in that location). This is used to validate and create webhooks. # @!attribute [rw] read_authorizer_credential # @return [::Google::Cloud::DeveloperConnect::V1::UserCredential] # Required. An access token with the minimum `repository` access. @@ -468,6 +557,16 @@ class BitbucketCloudConfig extend ::Google::Protobuf::MessageExts::ClassMethods end + # Configuration for connections to Secure Source Manager instance + # @!attribute [rw] instance + # @return [::String] + # Required. Immutable. Secure Source Manager instance resource, formatted as + # `projects/*/locations/*/instances/*` + class SecureSourceManagerInstanceConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Message for requesting list of Connections # @!attribute [rw] parent # @return [::String] @@ -887,6 +986,102 @@ class FetchAccessTokenResponse extend ::Google::Protobuf::MessageExts::ClassMethods end + # Message for starting an OAuth flow. + # @!attribute [rw] account_connector + # @return [::String] + # Required. The resource name of the AccountConnector in the format + # `projects/*/locations/*/accountConnectors/*`. + class StartOAuthRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for responding to starting an OAuth flow. + # @!attribute [rw] system_provider_id + # @return [::Google::Cloud::DeveloperConnect::V1::SystemProvider] + # The ID of the system provider. + # @!attribute [rw] ticket + # @return [::String] + # The ticket to be used for post processing the callback from the service + # provider. + # @!attribute [rw] code_challenge + # @return [::String] + # Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 + # @!attribute [rw] code_challenge_method + # @return [::String] + # Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2 + # @!attribute [rw] client_id + # @return [::String] + # The client ID to the OAuth App of the service provider. + # @!attribute [rw] scopes + # @return [::Array<::String>] + # The list of scopes requested by the application. + # @!attribute [rw] auth_uri + # @return [::String] + # The authorization server URL to the OAuth flow of the service provider. + class StartOAuthResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for finishing an OAuth flow. + # @!attribute [rw] oauth_params + # @return [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::OAuthParams] + # The params returned by non-Google OAuth 2.0 flow redirect. + # + # Note: The following fields are mutually exclusive: `oauth_params`, `google_oauth_params`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] google_oauth_params + # @return [::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::GoogleOAuthParams] + # The params returned by Google OAuth flow redirects. + # + # Note: The following fields are mutually exclusive: `google_oauth_params`, `oauth_params`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] account_connector + # @return [::String] + # Required. The resource name of the AccountConnector in the format + # `projects/*/locations/*/accountConnectors/*`. + class FinishOAuthRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The params returned by non-Google OAuth 2.0 flow redirect. + # @!attribute [rw] code + # @return [::String] + # Required. The code to be used for getting the token from SCM provider. + # @!attribute [rw] ticket + # @return [::String] + # Required. The ticket to be used for post processing the callback from SCM + # provider. + class OAuthParams + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The params returned by Google OAuth flow redirects. + # @!attribute [rw] scopes + # @return [::Array<::String>] + # Required. The scopes returned by Google OAuth flow. + # @!attribute [rw] version_info + # @return [::String] + # Optional. The version info returned by Google OAuth flow. + # @!attribute [rw] ticket + # @return [::String] + # Required. The ticket to be used for post processing the callback from + # Google OAuth flow. + class GoogleOAuthParams + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Message for responding to finishing an OAuth flow. + # @!attribute [rw] exchange_error + # @return [::Google::Cloud::DeveloperConnect::V1::ExchangeError] + # The error resulted from exchanging OAuth tokens from the service provider. + class FinishOAuthResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Message for representing an error from exchanging OAuth tokens. # @!attribute [rw] code # @return [::String] @@ -1256,7 +1451,7 @@ class FetchGitRefsResponse # token endpoints. # @!attribute [rw] provider_oauth_config # @return [::Google::Cloud::DeveloperConnect::V1::ProviderOAuthConfig] - # Provider OAuth config. + # Optional. Provider OAuth config. # @!attribute [rw] name # @return [::String] # Identifier. The resource name of the accountConnector, in the format @@ -1328,7 +1523,7 @@ class User # ProviderOAuthConfig is the OAuth config for a provider. # @!attribute [rw] system_provider_id # @return [::Google::Cloud::DeveloperConnect::V1::SystemProvider] - # Immutable. Developer Connect provided OAuth. + # Optional. Immutable. Developer Connect provided OAuth. # @!attribute [rw] scopes # @return [::Array<::String>] # Required. User selected scopes to apply to the Oauth config diff --git a/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/insights_config.rb b/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/insights_config.rb index cf43b8b20420..2ca9342d475b 100644 --- a/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/insights_config.rb +++ b/google-cloud-developer_connect-v1/proto_docs/google/cloud/developerconnect/v1/insights_config.rb @@ -23,13 +23,20 @@ module Developerconnect module V1 # The InsightsConfig resource is the core configuration object to capture # events from your Software Development Lifecycle. It acts as the central hub - # for managing how Developer connect understands your application, its runtime + # for managing how Developer Connect understands your application, its runtime # environments, and the artifacts deployed within them. # @!attribute [rw] app_hub_application # @return [::String] # Optional. The name of the App Hub Application. # Format: # projects/\\{project}/locations/\\{location}/applications/\\{application} + # + # Note: The following fields are mutually exclusive: `app_hub_application`, `projects`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] projects + # @return [::Google::Cloud::Developerconnect::V1::Projects] + # Optional. The projects to track with the InsightsConfig. + # + # Note: The following fields are mutually exclusive: `projects`, `app_hub_application`. 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 name of the InsightsConfig. @@ -37,10 +44,10 @@ module V1 # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insightsConfig} # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] - # Output only. [Output only] Create timestamp + # Output only. Create timestamp. # @!attribute [r] update_time # @return [::Google::Protobuf::Timestamp] - # Output only. [Output only] Update timestamp + # Output only. Update timestamp. # @!attribute [r] runtime_configs # @return [::Array<::Google::Cloud::Developerconnect::V1::RuntimeConfig>] # Output only. The runtime configurations where the application is deployed. @@ -109,14 +116,38 @@ module State end end + # Projects represents the projects to track with the InsightsConfig. + # @!attribute [rw] project_ids + # @return [::Array<::String>] + # Optional. The project IDs. + # Format: \\{project} + class Projects + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # RuntimeConfig represents the runtimes where the application is # deployed. # @!attribute [r] gke_workload # @return [::Google::Cloud::Developerconnect::V1::GKEWorkload] # Output only. Google Kubernetes Engine runtime. + # + # Note: The following fields are mutually exclusive: `gke_workload`, `google_cloud_run`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] google_cloud_run + # @return [::Google::Cloud::Developerconnect::V1::GoogleCloudRun] + # Output only. Cloud Run runtime. + # + # Note: The following fields are mutually exclusive: `google_cloud_run`, `gke_workload`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [r] app_hub_workload # @return [::Google::Cloud::Developerconnect::V1::AppHubWorkload] # Output only. App Hub Workload. + # + # Note: The following fields are mutually exclusive: `app_hub_workload`, `app_hub_service`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] app_hub_service + # @return [::Google::Cloud::Developerconnect::V1::AppHubService] + # Output only. App Hub Service. + # + # Note: The following fields are mutually exclusive: `app_hub_service`, `app_hub_workload`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] uri # @return [::String] # Required. Immutable. The URI of the runtime configuration. @@ -159,6 +190,17 @@ class GKEWorkload extend ::Google::Protobuf::MessageExts::ClassMethods end + # GoogleCloudRun represents the Cloud Run runtime. + # @!attribute [rw] service_uri + # @return [::String] + # Required. Immutable. The name of the Cloud Run service. + # Format: + # `projects/{project}/locations/{location}/services/{service}`. + class GoogleCloudRun + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # AppHubWorkload represents the App Hub Workload. # @!attribute [r] workload # @return [::String] @@ -176,10 +218,27 @@ class AppHubWorkload extend ::Google::Protobuf::MessageExts::ClassMethods end + # AppHubService represents the App Hub Service. + # @!attribute [r] apphub_service + # @return [::String] + # Required. Output only. Immutable. The name of the App Hub Service. + # Format: + # `projects/{project}/locations/{location}/applications/{application}/services/{service}`. + # @!attribute [r] criticality + # @return [::String] + # Output only. The criticality of the App Hub Service. + # @!attribute [r] environment + # @return [::String] + # Output only. The environment of the App Hub Service. + class AppHubService + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The artifact config of the artifact that is deployed. # @!attribute [rw] google_artifact_registry # @return [::Google::Cloud::Developerconnect::V1::GoogleArtifactRegistry] - # Optional. Set if the artifact is stored in Artifact regsitry. + # Optional. Set if the artifact is stored in Artifact registry. # @!attribute [rw] google_artifact_analysis # @return [::Google::Cloud::Developerconnect::V1::GoogleArtifactAnalysis] # Optional. Set if the artifact metadata is stored in Artifact analysis. @@ -215,6 +274,150 @@ class GoogleArtifactRegistry extend ::Google::Protobuf::MessageExts::ClassMethods end + # The DeploymentEvent resource represents the deployment of the artifact within + # the InsightsConfig resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the DeploymentEvent. This name is provided by + # Developer Connect insights. Format: + # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config}/deploymentEvents/\\{uuid} + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The create time of the DeploymentEvent. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The update time of the DeploymentEvent. + # @!attribute [r] runtime_config + # @return [::Google::Cloud::Developerconnect::V1::RuntimeConfig] + # Output only. The runtime configurations where the DeploymentEvent happened. + # @!attribute [r] runtime_deployment_uri + # @return [::String] + # Output only. The runtime assigned URI of the DeploymentEvent. + # For GKE, this is the fully qualified replica set uri. + # e.g. + # container.googleapis.com/projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/k8s/namespaces/\\{namespace}/apps/replicasets/\\{replica-set-id} + # For Cloud Run, this is the revision name. + # @!attribute [r] state + # @return [::Google::Cloud::Developerconnect::V1::DeploymentEvent::State] + # Output only. The state of the DeploymentEvent. + # @!attribute [r] artifact_deployments + # @return [::Array<::Google::Cloud::Developerconnect::V1::ArtifactDeployment>] + # Output only. The artifact deployments of the DeploymentEvent. Each artifact + # deployment contains the artifact uri and the runtime configuration uri. For + # GKE, this would be all the containers images that are deployed in the pod. + # @!attribute [r] deploy_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time at which the DeploymentEvent was deployed. + # This would be the min of all ArtifactDeployment deploy_times. + # @!attribute [r] undeploy_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time at which the DeploymentEvent was undeployed, all + # artifacts are considered undeployed once this time is set. This would be + # the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment + # is still active (i.e. does not have an undeploy_time), this field will be + # empty. + class DeploymentEvent + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The state of the DeploymentEvent. + module State + # No state specified. + STATE_UNSPECIFIED = 0 + + # The deployment is active in the runtime. + STATE_ACTIVE = 1 + + # The deployment is not in the runtime. + STATE_INACTIVE = 2 + end + end + + # Request for getting a DeploymentEvent. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the deployment event to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config}/deploymentEvents/\\{uuid} + class GetDeploymentEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request for requesting list of DeploymentEvents. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent insights config that owns this collection of + # deployment events. Format: + # projects/\\{project}/locations/\\{location}/insightsConfigs/\\{insights_config} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of deployment events to return. The service + # may return fewer than this value. If unspecified, at most 50 deployment + # events will be returned. The maximum value is 1000; values above 1000 will + # be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListDeploymentEvents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDeploymentEvents` + # must match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter expression that matches a subset of the DeploymentEvents. + # https://google.aip.dev/160. + class ListDeploymentEventsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response to listing DeploymentEvents. + # @!attribute [rw] deployment_events + # @return [::Array<::Google::Cloud::Developerconnect::V1::DeploymentEvent>] + # The list of DeploymentEvents. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListDeploymentEventsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The ArtifactDeployment resource represents the deployment of the artifact + # within the InsightsConfig resource. + # @!attribute [r] id + # @return [::String] + # Output only. Unique identifier of `ArtifactDeployment`. + # @!attribute [r] artifact_reference + # @return [::String] + # Output only. The artifact that is deployed. + # @!attribute [r] artifact_alias + # @return [::String] + # Output only. The artifact alias in the deployment spec, with Tag/SHA. + # e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0 + # @!attribute [r] source_commit_uris + # @return [::Array<::String>] + # Output only. The source commits at which this artifact was built. Extracted + # from provenance. + # @!attribute [r] deploy_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time at which the deployment was deployed. + # @!attribute [r] undeploy_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time at which the deployment was undeployed, all artifacts + # are considered undeployed once this time is set. + # @!attribute [r] container_status_summary + # @return [::String] + # Output only. The summary of container status of the artifact deployment. + # Format as `ContainerStatusState-Reason : restartCount` + # e.g. "Waiting-ImagePullBackOff : 3" + class ArtifactDeployment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Request for creating an InsightsConfig. # @!attribute [rw] parent # @return [::String] diff --git a/google-cloud-developer_connect-v1/snippets/developer_connect/finish_o_auth.rb b/google-cloud-developer_connect-v1/snippets/developer_connect/finish_o_auth.rb new file mode 100644 index 000000000000..3c616f2538c5 --- /dev/null +++ b/google-cloud-developer_connect-v1/snippets/developer_connect/finish_o_auth.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 developerconnect_v1_generated_DeveloperConnect_FinishOAuth_sync] +require "google/cloud/developer_connect/v1" + +## +# Snippet for the finish_o_auth call in the DeveloperConnect 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::DeveloperConnect::V1::DeveloperConnect::Client#finish_o_auth. +# +def finish_o_auth + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest.new + + # Call the finish_o_auth method. + result = client.finish_o_auth request + + # The returned object is of type Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse. + p result +end +# [END developerconnect_v1_generated_DeveloperConnect_FinishOAuth_sync] diff --git a/google-cloud-developer_connect-v1/snippets/developer_connect/start_o_auth.rb b/google-cloud-developer_connect-v1/snippets/developer_connect/start_o_auth.rb new file mode 100644 index 000000000000..d45766a5b6fc --- /dev/null +++ b/google-cloud-developer_connect-v1/snippets/developer_connect/start_o_auth.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 developerconnect_v1_generated_DeveloperConnect_StartOAuth_sync] +require "google/cloud/developer_connect/v1" + +## +# Snippet for the start_o_auth call in the DeveloperConnect 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::DeveloperConnect::V1::DeveloperConnect::Client#start_o_auth. +# +def start_o_auth + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::DeveloperConnect::V1::StartOAuthRequest.new + + # Call the start_o_auth method. + result = client.start_o_auth request + + # The returned object is of type Google::Cloud::DeveloperConnect::V1::StartOAuthResponse. + p result +end +# [END developerconnect_v1_generated_DeveloperConnect_StartOAuth_sync] diff --git a/google-cloud-developer_connect-v1/snippets/insights_config_service/get_deployment_event.rb b/google-cloud-developer_connect-v1/snippets/insights_config_service/get_deployment_event.rb new file mode 100644 index 000000000000..2bc65055e42c --- /dev/null +++ b/google-cloud-developer_connect-v1/snippets/insights_config_service/get_deployment_event.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 developerconnect_v1_generated_InsightsConfigService_GetDeploymentEvent_sync] +require "google/cloud/developer_connect/v1" + +## +# Snippet for the get_deployment_event call in the InsightsConfigService 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::Developerconnect::V1::InsightsConfigService::Client#get_deployment_event. +# +def get_deployment_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Developerconnect::V1::InsightsConfigService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest.new + + # Call the get_deployment_event method. + result = client.get_deployment_event request + + # The returned object is of type Google::Cloud::Developerconnect::V1::DeploymentEvent. + p result +end +# [END developerconnect_v1_generated_InsightsConfigService_GetDeploymentEvent_sync] diff --git a/google-cloud-developer_connect-v1/snippets/insights_config_service/list_deployment_events.rb b/google-cloud-developer_connect-v1/snippets/insights_config_service/list_deployment_events.rb new file mode 100644 index 000000000000..6418f23f9b86 --- /dev/null +++ b/google-cloud-developer_connect-v1/snippets/insights_config_service/list_deployment_events.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 developerconnect_v1_generated_InsightsConfigService_ListDeploymentEvents_sync] +require "google/cloud/developer_connect/v1" + +## +# Snippet for the list_deployment_events call in the InsightsConfigService 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::Developerconnect::V1::InsightsConfigService::Client#list_deployment_events. +# +def list_deployment_events + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Developerconnect::V1::InsightsConfigService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest.new + + # Call the list_deployment_events method. + result = client.list_deployment_events 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::Developerconnect::V1::DeploymentEvent. + p item + end +end +# [END developerconnect_v1_generated_InsightsConfigService_ListDeploymentEvents_sync] diff --git a/google-cloud-developer_connect-v1/snippets/snippet_metadata_google.cloud.developerconnect.v1.json b/google-cloud-developer_connect-v1/snippets/snippet_metadata_google.cloud.developerconnect.v1.json index d35fcd1d7e8d..1ef1a6b95d26 100644 --- a/google-cloud-developer_connect-v1/snippets/snippet_metadata_google.cloud.developerconnect.v1.json +++ b/google-cloud-developer_connect-v1/snippets/snippet_metadata_google.cloud.developerconnect.v1.json @@ -971,6 +971,86 @@ } ] }, + { + "region_tag": "developerconnect_v1_generated_DeveloperConnect_StartOAuth_sync", + "title": "Snippet for the start_o_auth call in the DeveloperConnect service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client#start_o_auth.", + "file": "developer_connect/start_o_auth.rb", + "language": "RUBY", + "client_method": { + "short_name": "start_o_auth", + "full_name": "::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client#start_o_auth", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse", + "client": { + "short_name": "DeveloperConnect::Client", + "full_name": "::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client" + }, + "method": { + "short_name": "StartOAuth", + "full_name": "google.cloud.developerconnect.v1.DeveloperConnect.StartOAuth", + "service": { + "short_name": "DeveloperConnect", + "full_name": "google.cloud.developerconnect.v1.DeveloperConnect" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "developerconnect_v1_generated_DeveloperConnect_FinishOAuth_sync", + "title": "Snippet for the finish_o_auth call in the DeveloperConnect service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client#finish_o_auth.", + "file": "developer_connect/finish_o_auth.rb", + "language": "RUBY", + "client_method": { + "short_name": "finish_o_auth", + "full_name": "::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client#finish_o_auth", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse", + "client": { + "short_name": "DeveloperConnect::Client", + "full_name": "::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client" + }, + "method": { + "short_name": "FinishOAuth", + "full_name": "google.cloud.developerconnect.v1.DeveloperConnect.FinishOAuth", + "service": { + "short_name": "DeveloperConnect", + "full_name": "google.cloud.developerconnect.v1.DeveloperConnect" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, { "region_tag": "developerconnect_v1_generated_InsightsConfigService_ListInsightsConfigs_sync", "title": "Snippet for the list_insights_configs call in the InsightsConfigService service", @@ -1170,6 +1250,86 @@ "type": "FULL" } ] + }, + { + "region_tag": "developerconnect_v1_generated_InsightsConfigService_GetDeploymentEvent_sync", + "title": "Snippet for the get_deployment_event call in the InsightsConfigService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Developerconnect::V1::InsightsConfigService::Client#get_deployment_event.", + "file": "insights_config_service/get_deployment_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_deployment_event", + "full_name": "::Google::Cloud::Developerconnect::V1::InsightsConfigService::Client#get_deployment_event", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Developerconnect::V1::DeploymentEvent", + "client": { + "short_name": "InsightsConfigService::Client", + "full_name": "::Google::Cloud::Developerconnect::V1::InsightsConfigService::Client" + }, + "method": { + "short_name": "GetDeploymentEvent", + "full_name": "google.cloud.developerconnect.v1.InsightsConfigService.GetDeploymentEvent", + "service": { + "short_name": "InsightsConfigService", + "full_name": "google.cloud.developerconnect.v1.InsightsConfigService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "developerconnect_v1_generated_InsightsConfigService_ListDeploymentEvents_sync", + "title": "Snippet for the list_deployment_events call in the InsightsConfigService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Developerconnect::V1::InsightsConfigService::Client#list_deployment_events.", + "file": "insights_config_service/list_deployment_events.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_deployment_events", + "full_name": "::Google::Cloud::Developerconnect::V1::InsightsConfigService::Client#list_deployment_events", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Developerconnect::V1::ListDeploymentEventsResponse", + "client": { + "short_name": "InsightsConfigService::Client", + "full_name": "::Google::Cloud::Developerconnect::V1::InsightsConfigService::Client" + }, + "method": { + "short_name": "ListDeploymentEvents", + "full_name": "google.cloud.developerconnect.v1.InsightsConfigService.ListDeploymentEvents", + "service": { + "short_name": "InsightsConfigService", + "full_name": "google.cloud.developerconnect.v1.InsightsConfigService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] } ] } \ No newline at end of file diff --git a/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_paths_test.rb b/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_paths_test.rb index 956117691ccb..b636cf18fb09 100644 --- a/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_paths_test.rb +++ b/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_paths_test.rb @@ -89,6 +89,18 @@ def test_git_repository_link_path end end + def test_instance_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.instance_path project: "value0", location: "value1", instance: "value2" + assert_equal "projects/value0/locations/value1/instances/value2", path + 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 @@ -110,6 +122,9 @@ def test_secret_version_path path = client.secret_version_path project: "value0", secret: "value1", secret_version: "value2" assert_equal "projects/value0/secrets/value1/versions/value2", path + + path = client.secret_version_path project: "value0", location: "value1", secret: "value2", secret_version: "value3" + assert_equal "projects/value0/locations/value1/secrets/value2/versions/value3", path end end diff --git a/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_rest_test.rb b/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_rest_test.rb index a27e42d603a5..7546d75debba 100644 --- a/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_rest_test.rb +++ b/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_rest_test.rb @@ -1428,6 +1428,115 @@ def test_delete_self end end + def test_start_o_auth + # Create test objects. + client_result = ::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + account_connector = "hello world" + + start_o_auth_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::DeveloperConnect::V1::DeveloperConnect::Rest::ServiceStub.stub :transcode_start_o_auth_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, start_o_auth_client_stub do + # Create client + client = ::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.start_o_auth({ account_connector: account_connector }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.start_o_auth account_connector: account_connector do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.start_o_auth ::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest.new(account_connector: account_connector) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.start_o_auth({ account_connector: account_connector }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.start_o_auth(::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest.new(account_connector: account_connector), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, start_o_auth_client_stub.call_count + end + end + end + + def test_finish_o_auth + # Create test objects. + client_result = ::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + oauth_params = {} + account_connector = "hello world" + + finish_o_auth_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::DeveloperConnect::V1::DeveloperConnect::Rest::ServiceStub.stub :transcode_finish_o_auth_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, finish_o_auth_client_stub do + # Create client + client = ::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.finish_o_auth({ oauth_params: oauth_params, account_connector: account_connector }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.finish_o_auth oauth_params: oauth_params, account_connector: account_connector do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.finish_o_auth ::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest.new(oauth_params: oauth_params, account_connector: account_connector) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.finish_o_auth({ oauth_params: oauth_params, account_connector: account_connector }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.finish_o_auth(::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest.new(oauth_params: oauth_params, account_connector: account_connector), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, finish_o_auth_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_test.rb b/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_test.rb index 69d99795e73c..809aabff221a 100644 --- a/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_test.rb +++ b/google-cloud-developer_connect-v1/test/google/cloud/developer_connect/v1/developer_connect_test.rb @@ -1638,6 +1638,125 @@ def test_delete_self end end + def test_start_o_auth + # Create GRPC objects. + grpc_response = ::Google::Cloud::DeveloperConnect::V1::StartOAuthResponse.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. + account_connector = "hello world" + + start_o_auth_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :start_o_auth, name + assert_kind_of ::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest, request + assert_equal "hello world", request["account_connector"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, start_o_auth_client_stub do + # Create client + client = ::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.start_o_auth({ account_connector: account_connector }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.start_o_auth account_connector: account_connector do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.start_o_auth ::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest.new(account_connector: account_connector) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.start_o_auth({ account_connector: account_connector }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.start_o_auth(::Google::Cloud::DeveloperConnect::V1::StartOAuthRequest.new(account_connector: account_connector), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, start_o_auth_client_stub.call_rpc_count + end + end + + def test_finish_o_auth + # Create GRPC objects. + grpc_response = ::Google::Cloud::DeveloperConnect::V1::FinishOAuthResponse.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. + oauth_params = {} + account_connector = "hello world" + + finish_o_auth_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :finish_o_auth, name + assert_kind_of ::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest::OAuthParams), request["oauth_params"] + assert_equal :oauth_params, request.params + assert_equal "hello world", request["account_connector"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, finish_o_auth_client_stub do + # Create client + client = ::Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.finish_o_auth({ oauth_params: oauth_params, account_connector: account_connector }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.finish_o_auth oauth_params: oauth_params, account_connector: account_connector do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.finish_o_auth ::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest.new(oauth_params: oauth_params, account_connector: account_connector) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.finish_o_auth({ oauth_params: oauth_params, account_connector: account_connector }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.finish_o_auth(::Google::Cloud::DeveloperConnect::V1::FinishOAuthRequest.new(oauth_params: oauth_params, account_connector: account_connector), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, finish_o_auth_client_stub.call_rpc_count + end + end + def test_configure grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure diff --git a/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_paths_test.rb b/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_paths_test.rb index 74c5831d3177..dd2b20121873 100644 --- a/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_paths_test.rb +++ b/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_paths_test.rb @@ -41,6 +41,18 @@ def logger end end + def test_deployment_event_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Developerconnect::V1::InsightsConfigService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.deployment_event_path project: "value0", location: "value1", insights_config: "value2", deployment_event: "value3" + assert_equal "projects/value0/locations/value1/insightsConfigs/value2/deploymentEvents/value3", path + end + end + def test_insights_config_path grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure ::Gapic::ServiceStub.stub :new, DummyStub.new do diff --git a/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_rest_test.rb b/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_rest_test.rb index 92b7cc84be1f..4654bcd9f870 100644 --- a/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_rest_test.rb +++ b/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_rest_test.rb @@ -361,6 +361,117 @@ def test_delete_insights_config end end + def test_get_deployment_event + # Create test objects. + client_result = ::Google::Cloud::Developerconnect::V1::DeploymentEvent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_deployment_event_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::Developerconnect::V1::InsightsConfigService::Rest::ServiceStub.stub :transcode_get_deployment_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_deployment_event_client_stub do + # Create client + client = ::Google::Cloud::Developerconnect::V1::InsightsConfigService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_deployment_event({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_deployment_event name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_deployment_event ::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_deployment_event({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_deployment_event(::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_deployment_event_client_stub.call_count + end + end + end + + def test_list_deployment_events + # Create test objects. + client_result = ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsResponse.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" + + list_deployment_events_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::Developerconnect::V1::InsightsConfigService::Rest::ServiceStub.stub :transcode_list_deployment_events_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_deployment_events_client_stub do + # Create client + client = ::Google::Cloud::Developerconnect::V1::InsightsConfigService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_deployment_events({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_deployment_events parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_deployment_events ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_deployment_events({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_deployment_events(::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_deployment_events_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_test.rb b/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_test.rb index cc37e4eb8238..8c27e8e91cc5 100644 --- a/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_test.rb +++ b/google-cloud-developer_connect-v1/test/google/cloud/developerconnect/v1/insights_config_service_test.rb @@ -399,6 +399,133 @@ def test_delete_insights_config end end + def test_get_deployment_event + # Create GRPC objects. + grpc_response = ::Google::Cloud::Developerconnect::V1::DeploymentEvent.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_deployment_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_deployment_event, name + assert_kind_of ::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_deployment_event_client_stub do + # Create client + client = ::Google::Cloud::Developerconnect::V1::InsightsConfigService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_deployment_event({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_deployment_event name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_deployment_event ::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_deployment_event({ 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_deployment_event(::Google::Cloud::Developerconnect::V1::GetDeploymentEventRequest.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_deployment_event_client_stub.call_rpc_count + end + end + + def test_list_deployment_events + # Create GRPC objects. + grpc_response = ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsResponse.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" + + list_deployment_events_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_deployment_events, name + assert_kind_of ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest, 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"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_deployment_events_client_stub do + # Create client + client = ::Google::Cloud::Developerconnect::V1::InsightsConfigService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_deployment_events({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) 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_deployment_events parent: parent, page_size: page_size, page_token: page_token, filter: filter 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_deployment_events ::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) 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_deployment_events({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, 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_deployment_events(::Google::Cloud::Developerconnect::V1::ListDeploymentEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), 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_deployment_events_client_stub.call_rpc_count + end + end + def test_configure grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure