Class: Google::Cloud::ServiceControl::V1::CheckResponse::ConsumerInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/servicecontrol/v1/service_controller.rb

Overview

ConsumerInfo provides information about the consumer.

Defined Under Namespace

Modules: ConsumerType

Instance Attribute Summary collapse

Instance Attribute Details

#consumer_number::Integer

Returns The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

Returns:

  • (::Integer)

    The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'proto_docs/google/api/servicecontrol/v1/service_controller.rb', line 110

class ConsumerInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the consumer as defined in
  # [Google Resource Manager](https://cloud.google.com/resource-manager/).
  module ConsumerType
    # This is never used.
    CONSUMER_TYPE_UNSPECIFIED = 0

    # The consumer is a Google Cloud Project.
    PROJECT = 1

    # The consumer is a Google Cloud Folder.
    FOLDER = 2

    # The consumer is a Google Cloud Organization.
    ORGANIZATION = 3

    # Service-specific resource container which is defined by the service
    # producer to offer their users the ability to manage service control
    # functionalities at a finer level of granularity than the PROJECT.
    SERVICE_SPECIFIC = 4
  end
end

#project_number::Integer

Returns The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

Returns:

  • (::Integer)

    The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

    NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'proto_docs/google/api/servicecontrol/v1/service_controller.rb', line 110

class ConsumerInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the consumer as defined in
  # [Google Resource Manager](https://cloud.google.com/resource-manager/).
  module ConsumerType
    # This is never used.
    CONSUMER_TYPE_UNSPECIFIED = 0

    # The consumer is a Google Cloud Project.
    PROJECT = 1

    # The consumer is a Google Cloud Folder.
    FOLDER = 2

    # The consumer is a Google Cloud Organization.
    ORGANIZATION = 3

    # Service-specific resource container which is defined by the service
    # producer to offer their users the ability to manage service control
    # functionalities at a finer level of granularity than the PROJECT.
    SERVICE_SPECIFIC = 4
  end
end

#type::Google::Cloud::ServiceControl::V1::CheckResponse::ConsumerInfo::ConsumerType

Returns The type of the consumer which should have been defined in Google Resource Manager.

Returns:



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'proto_docs/google/api/servicecontrol/v1/service_controller.rb', line 110

class ConsumerInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of the consumer as defined in
  # [Google Resource Manager](https://cloud.google.com/resource-manager/).
  module ConsumerType
    # This is never used.
    CONSUMER_TYPE_UNSPECIFIED = 0

    # The consumer is a Google Cloud Project.
    PROJECT = 1

    # The consumer is a Google Cloud Folder.
    FOLDER = 2

    # The consumer is a Google Cloud Organization.
    ORGANIZATION = 3

    # Service-specific resource container which is defined by the service
    # producer to offer their users the ability to manage service control
    # functionalities at a finer level of granularity than the PROJECT.
    SERVICE_SPECIFIC = 4
  end
end