Class: Google::Apis::ManagedidentitiesV1::Peering

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

Overview

Represents a Managed Service for Microsoft Active Directory Peering.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Peering

Returns a new instance of Peering.



1552
1553
1554
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1552

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

Instance Attribute Details

#authorized_networkString

Required. The full names of the Google Compute Engine networks to which the instance is connected. Caller needs to make sure that CIDR subnets do not overlap between networks, else peering creation will fail. Corresponds to the JSON property authorizedNetwork

Returns:

  • (String)


1510
1511
1512
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1510

def authorized_network
  @authorized_network
end

#create_timeString

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

Returns:

  • (String)


1515
1516
1517
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1515

def create_time
  @create_time
end

#domain_resourceString

Required. Full domain resource path for the Managed AD Domain involved in peering. The resource path should be in the form: projects/project_id/ locations/global/domains/domain_name` Corresponds to the JSON propertydomainResource`

Returns:

  • (String)


1522
1523
1524
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1522

def domain_resource
  @domain_resource
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1527
1528
1529
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1527

def labels
  @labels
end

#nameString

Output only. Unique name of the peering in this scope including projects and location using the form: projects/project_id/locations/global/peerings/ peering_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1534
1535
1536
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1534

def name
  @name
end

#stateString

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

Returns:

  • (String)


1539
1540
1541
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1539

def state
  @state
end

#status_messageString

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

Returns:

  • (String)


1545
1546
1547
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1545

def status_message
  @status_message
end

#update_timeString

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

Returns:

  • (String)


1550
1551
1552
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1550

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1557

def update!(**args)
  @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
  @create_time = args[:create_time] if args.key?(:create_time)
  @domain_resource = args[:domain_resource] if args.key?(:domain_resource)
  @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)
  @update_time = args[:update_time] if args.key?(:update_time)
end