# frozen_string_literal: true

# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!


module Google
  module Cloud
    module ApiHub
      module V1
        # A plugin resource in the API Hub.
        # @!attribute [rw] name
        #   @return [::String]
        #     Identifier. The name of the plugin.
        #     Format: `projects/{project}/locations/{location}/plugins/{plugin}`
        # @!attribute [rw] display_name
        #   @return [::String]
        #     Required. The display name of the plugin. Max length is 50 characters
        #     (Unicode code points).
        # @!attribute [rw] type
        #   @return [::Google::Cloud::ApiHub::V1::AttributeValues]
        #     Required. The type of the API.
        #     This maps to the following system defined attribute:
        #     `projects/{project}/locations/{location}/attributes/system-plugin-type`
        #     attribute.
        #     The number of allowed values for this attribute will be based on the
        #     cardinality of the attribute. The same can be retrieved via GetAttribute
        #     API. All values should be from the list of allowed values defined for the
        #     attribute.
        # @!attribute [rw] description
        #   @return [::String]
        #     Optional. The plugin description. Max length is 2000 characters (Unicode
        #     code points).
        # @!attribute [r] state
        #   @return [::Google::Cloud::ApiHub::V1::Plugin::State]
        #     Output only. Represents the state of the plugin.
        class Plugin
          include ::Google::Protobuf::MessageExts
          extend ::Google::Protobuf::MessageExts::ClassMethods

          # Possible states a plugin can have. Note that this enum may receive new
          # values in the future. Consumers are advised to always code against the
          # enum values expecting new states can be added later on.
          module State
            # The default value. This value is used if the state is omitted.
            STATE_UNSPECIFIED = 0

            # The plugin is enabled.
            ENABLED = 1

            # The plugin is disabled.
            DISABLED = 2
          end
        end

        # The {::Google::Cloud::ApiHub::V1::ApiHubPlugin::Rest::Client#get_plugin GetPlugin} method's
        # request.
        # @!attribute [rw] name
        #   @return [::String]
        #     Required. The name of the plugin to retrieve.
        #     Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
        class GetPluginRequest
          include ::Google::Protobuf::MessageExts
          extend ::Google::Protobuf::MessageExts::ClassMethods
        end

        # The {::Google::Cloud::ApiHub::V1::ApiHubPlugin::Rest::Client#enable_plugin EnablePlugin} method's
        # request.
        # @!attribute [rw] name
        #   @return [::String]
        #     Required. The name of the plugin to enable.
        #     Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
        class EnablePluginRequest
          include ::Google::Protobuf::MessageExts
          extend ::Google::Protobuf::MessageExts::ClassMethods
        end

        # The {::Google::Cloud::ApiHub::V1::ApiHubPlugin::Rest::Client#disable_plugin DisablePlugin}
        # method's request.
        # @!attribute [rw] name
        #   @return [::String]
        #     Required. The name of the plugin to disable.
        #     Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
        class DisablePluginRequest
          include ::Google::Protobuf::MessageExts
          extend ::Google::Protobuf::MessageExts::ClassMethods
        end
      end
    end
  end
end