Class: Google::Apis::ArtifactregistryV1beta2::ProjectSettings

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

Overview

The Artifact Registry settings that apply to a Project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProjectSettings

Returns a new instance of ProjectSettings.



974
975
976
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 974

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

Instance Attribute Details

#legacy_redirection_stateString

The redirection state of the legacy repositories in this project. Corresponds to the JSON property legacyRedirectionState

Returns:

  • (String)


966
967
968
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 966

def legacy_redirection_state
  @legacy_redirection_state
end

#nameString

The name of the project's settings. Always of the form: projects/project-id/ projectSettings In update request: never set In response: always set Corresponds to the JSON property name

Returns:

  • (String)


972
973
974
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 972

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



979
980
981
982
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 979

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