Class: Google::Apis::ServicecontrolV2::ResourceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/google/apis/servicecontrol_v2/representations.rb

Overview

Describes a resource referenced in the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceInfo

Returns a new instance of ResourceInfo.



1053
1054
1055
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1053

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#containerString

Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - projects/ - folders/ - organizations/ For the policy enforcement on the container level (VPCSC and Location Policy check), this field takes precedence on the container extracted from name when presents. Corresponds to the JSON property container

Returns:

  • (String)


1029
1030
1031
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1029

def container
  @container
end

#locationString

Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: "europe-west4" or "northamerica-northeast1-a" Corresponds to the JSON property location

Returns:

  • (String)


1035
1036
1037
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1035

def location
  @location
end

#nameString

The name of the resource referenced in the request. Corresponds to the JSON property name

Returns:

  • (String)


1040
1041
1042
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1040

def name
  @name
end

#permissionString

The resource permission needed for this request. The format must be "service/ plural.verb". Corresponds to the JSON property permission

Returns:

  • (String)


1046
1047
1048
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1046

def permission
  @permission
end

#typeString

The resource type in the format of "service/kind". Corresponds to the JSON property type

Returns:

  • (String)


1051
1052
1053
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1051

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1058
1059
1060
1061
1062
1063
1064
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1058

def update!(**args)
  @container = args[:container] if args.key?(:container)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @permission = args[:permission] if args.key?(:permission)
  @type = args[:type] if args.key?(:type)
end