Class: Google::Apis::ArtifactregistryV1::VpcscConfig
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::VpcscConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb
Overview
The Artifact Registry VPC SC config that apply to a Project.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the project's VPC SC Config.
-
#vpcsc_policy ⇒ String
The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).
Instance Method Summary collapse
-
#initialize(**args) ⇒ VpcscConfig
constructor
A new instance of VpcscConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VpcscConfig
Returns a new instance of VpcscConfig.
2249 2250 2251 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the project's VPC SC Config. Always of the form: projects/
projectID
/locations/location
/vpcscConfig In update request: never set In
response: always set
Corresponds to the JSON property name
2241 2242 2243 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2241 def name @name end |
#vpcsc_policy ⇒ String
The project per location VPC SC policy that defines the VPC SC behavior for
the Remote Repository (Allow/Deny).
Corresponds to the JSON property vpcscPolicy
2247 2248 2249 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2247 def vpcsc_policy @vpcsc_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2254 2255 2256 2257 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2254 def update!(**args) @name = args[:name] if args.key?(:name) @vpcsc_policy = args[:vpcsc_policy] if args.key?(:vpcsc_policy) end |