Class: Google::Apis::BackupdrV1::ManagementServer
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::ManagementServer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
ManagementServer describes a single BackupDR ManagementServer instance.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#etag ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#management_uri ⇒ Google::Apis::BackupdrV1::ManagementUri
ManagementURI for the Management Server resource.
-
#name ⇒ String
Output only.
-
#networks ⇒ Array<Google::Apis::BackupdrV1::NetworkConfig>
Required.
-
#oauth2_client_id ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#type ⇒ String
Required.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManagementServer
constructor
A new instance of ManagementServer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ManagementServer
Returns a new instance of ManagementServer.
455 456 457 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the instance was created.
Corresponds to the JSON property createTime
395 396 397 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 395 def create_time @create_time end |
#description ⇒ String
Optional. The description of the ManagementServer instance (2048 characters or
less).
Corresponds to the JSON property description
401 402 403 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 401 def description @description end |
#etag ⇒ String
Optional. Server specified ETag for the ManagementServer resource to prevent
simultaneous updates from overwiting each other.
Corresponds to the JSON property etag
407 408 409 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 407 def etag @etag end |
#labels ⇒ Hash<String,String>
Optional. Resource labels to represent user provided metadata. Labels
currently defined: 1. migrate_from_go= If set to true, the MS is created in
migration ready mode.
Corresponds to the JSON property labels
414 415 416 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 414 def labels @labels end |
#management_uri ⇒ Google::Apis::BackupdrV1::ManagementUri
ManagementURI for the Management Server resource.
Corresponds to the JSON property managementUri
419 420 421 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 419 def management_uri @management_uri end |
#name ⇒ String
Output only. The resource name.
Corresponds to the JSON property name
424 425 426 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 424 def name @name end |
#networks ⇒ Array<Google::Apis::BackupdrV1::NetworkConfig>
Required. VPC networks to which the ManagementServer instance is connected.
For this version, only a single network is supported.
Corresponds to the JSON property networks
430 431 432 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 430 def networks @networks end |
#oauth2_client_id ⇒ String
Output only. The OAuth 2.0 client id is required to make API calls to the
BackupDR instance API of this ManagementServer. This is the value that should
be provided in the ‘aud’ field of the OIDC ID Token (see openid specification
https://openid.net/specs/openid-connect-core-1_0.html#IDToken).
Corresponds to the JSON property oauth2ClientId
438 439 440 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 438 def oauth2_client_id @oauth2_client_id end |
#state ⇒ String
Output only. The ManagementServer state.
Corresponds to the JSON property state
443 444 445 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 443 def state @state end |
#type ⇒ String
Required. The type of the ManagementServer resource.
Corresponds to the JSON property type
448 449 450 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 448 def type @type end |
#update_time ⇒ String
Output only. The time when the instance was updated.
Corresponds to the JSON property updateTime
453 454 455 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 453 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
460 461 462 463 464 465 466 467 468 469 470 471 472 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 460 def update!(**args) @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) @management_uri = args[:management_uri] if args.key?(:management_uri) @name = args[:name] if args.key?(:name) @networks = args[:networks] if args.key?(:networks) @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end |