Class: Google::Apis::ManagedidentitiesV1alpha1::Backup

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

Overview

Represents a Managed Microsoft Identities backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Backup

Returns a new instance of Backup.



95
96
97
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 95

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

Instance Attribute Details

#create_timeString

Output only. The time the backups was created. Corresponds to the JSON property createTime

Returns:

  • (String)


56
57
58
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 56

def create_time
  @create_time
end

#descriptionString

Optional. A short description of the backup. Corresponds to the JSON property description

Returns:

  • (String)


61
62
63
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 61

def description
  @description
end

#labelsHash<String,String>

Optional. Resource labels to represent user provided metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


66
67
68
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 66

def labels
  @labels
end

#nameString

Output only. The unique name of the Backup in the form of projects/project_id /locations/global/domains/domain_name/backups/name Corresponds to the JSON property name

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 72

def name
  @name
end

#stateString

Output only. The current state of the backup. Corresponds to the JSON property state

Returns:

  • (String)


77
78
79
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 77

def state
  @state
end

#status_messageString

Output only. Additional information about the current status of this backup, if available. Corresponds to the JSON property statusMessage

Returns:

  • (String)


83
84
85
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 83

def status_message
  @status_message
end

#typeString

Output only. Indicates whether it’s an on-demand backup or scheduled. Corresponds to the JSON property type

Returns:

  • (String)


88
89
90
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 88

def type
  @type
end

#update_timeString

Output only. Last update time. Corresponds to the JSON property updateTime

Returns:

  • (String)


93
94
95
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 93

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



100
101
102
103
104
105
106
107
108
109
# File 'lib/google/apis/managedidentities_v1alpha1/classes.rb', line 100

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @status_message = args[:status_message] if args.key?(:status_message)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end