Class: Google::Apis::NetworkconnectivityV1::PscAuthorizationPolicy

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

Overview

Represents a PSC Authorization Policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscAuthorizationPolicy

Returns a new instance of PscAuthorizationPolicy.



3636
3637
3638
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3636

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

Instance Attribute Details

#authorization_modeString

Required. The authorization mode. Corresponds to the JSON property authorizationMode

Returns:

  • (String)


3584
3585
3586
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3584

def authorization_mode
  @authorization_mode
end

#authorized_client_resourcesArray<String>

Required. List of authorized consumer resources allowed to connect. Supported values are: 1. Project resource name (e.g., projects/project_id`) 2. Wildcard"*"(grants global ingress authorization to the target). Corresponds to the JSON propertyauthorizedClientResources`

Returns:

  • (Array<String>)


3591
3592
3593
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3591

def authorized_client_resources
  @authorized_client_resources
end

#create_timeString

Output only. The time when the PscAuthorizationPolicy was created. Corresponds to the JSON property createTime

Returns:

  • (String)


3596
3597
3598
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3596

def create_time
  @create_time
end

#descriptionString

Optional. A description of this resource. Corresponds to the JSON property description

Returns:

  • (String)


3601
3602
3603
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3601

def description
  @description
end

#etagString

Output only. The etag of the PscAuthorizationPolicy. Corresponds to the JSON property etag

Returns:

  • (String)


3606
3607
3608
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3606

def etag
  @etag
end

#labelsHash<String,String>

Optional. User-defined labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3611
3612
3613
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3611

def labels
  @labels
end

#nameString

Identifier. The name of the PscAuthorizationPolicy. Format: projects/project/ locations/location/pscAuthorizationPolicies/psc_authorization_policy Corresponds to the JSON property name

Returns:

  • (String)


3617
3618
3619
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3617

def name
  @name
end

#target_resource_uriString

Required. The full absolute URI of the targeted resource governed by this policy. For example, for an AgentRegistry resource, the format is: // agentregistry.googleapis.com/projects/project/locations/location` Corresponds to the JSON propertytargetResourceUri`

Returns:

  • (String)


3624
3625
3626
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3624

def target_resource_uri
  @target_resource_uri
end

#uidString

Output only. The unique identifier of the PscAuthorizationPolicy. Corresponds to the JSON property uid

Returns:

  • (String)


3629
3630
3631
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3629

def uid
  @uid
end

#update_timeString

Output only. The time when the PscAuthorizationPolicy was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3634
3635
3636
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3634

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3641

def update!(**args)
  @authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
  @authorized_client_resources = args[:authorized_client_resources] if args.key?(:authorized_client_resources)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @target_resource_uri = args[:target_resource_uri] if args.key?(:target_resource_uri)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end