Class: Google::Apis::NetworkconnectivityV1::PscAuthorizationPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::PscAuthorizationPolicy
- 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
-
#authorization_mode ⇒ String
Required.
-
#authorized_client_resources ⇒ Array<String>
Required.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#etag ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Identifier.
-
#target_resource_uri ⇒ String
Required.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PscAuthorizationPolicy
constructor
A new instance of PscAuthorizationPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_mode ⇒ String
Required. The authorization mode.
Corresponds to the JSON property authorizationMode
3584 3585 3586 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3584 def @authorization_mode end |
#authorized_client_resources ⇒ Array<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`
3591 3592 3593 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3591 def @authorized_client_resources end |
#create_time ⇒ String
Output only. The time when the PscAuthorizationPolicy was created.
Corresponds to the JSON property createTime
3596 3597 3598 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3596 def create_time @create_time end |
#description ⇒ String
Optional. A description of this resource.
Corresponds to the JSON property description
3601 3602 3603 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3601 def description @description end |
#etag ⇒ String
Output only. The etag of the PscAuthorizationPolicy.
Corresponds to the JSON property etag
3606 3607 3608 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3606 def etag @etag end |
#labels ⇒ Hash<String,String>
Optional. User-defined labels.
Corresponds to the JSON property labels
3611 3612 3613 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3611 def labels @labels end |
#name ⇒ String
Identifier. The name of the PscAuthorizationPolicy. Format: projects/project/
locations/location/pscAuthorizationPolicies/psc_authorization_policy
Corresponds to the JSON property name
3617 3618 3619 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3617 def name @name end |
#target_resource_uri ⇒ String
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`
3624 3625 3626 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3624 def target_resource_uri @target_resource_uri end |
#uid ⇒ String
Output only. The unique identifier of the PscAuthorizationPolicy.
Corresponds to the JSON property uid
3629 3630 3631 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3629 def uid @uid end |
#update_time ⇒ String
Output only. The time when the PscAuthorizationPolicy was updated.
Corresponds to the JSON property updateTime
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 |