Class: Google::Apis::ArtifactregistryV1::VpcscConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpcscConfig

Returns a new instance of VpcscConfig.



2500
2501
2502
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2500

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2492
2493
2494
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2492

def name
  @name
end

#vpcsc_policyString

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

Returns:

  • (String)


2498
2499
2500
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2498

def vpcsc_policy
  @vpcsc_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2505
2506
2507
2508
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2505

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @vpcsc_policy = args[:vpcsc_policy] if args.key?(:vpcsc_policy)
end