Class: Google::Apis::ManagedidentitiesV1beta1::DomainJoinMachineRequest

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

Overview

DomainJoinMachineRequest is the request message for DomainJoinMachine method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DomainJoinMachineRequest

Returns a new instance of DomainJoinMachineRequest.



561
562
563
# File 'lib/google/apis/managedidentities_v1beta1/classes.rb', line 561

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

Instance Attribute Details

#ou_nameString

Optional. OU name to which the VM needs to be domain joined. If the field is not provided, the VM is joined to the default OU which is created. The default OU for the domain join api is created as GCE Instances under the Cloud OU. Example - OU=GCE Instances,OU=Cloud,DC=ad,DC=test,DC=com If the field is provided, then the custom OU is searched for under GCE Instances OU. Example - if ou_name=test_ou then the VM is domain joined to the following OU: OU= test_ou,OU=GCE Instances,OU=Cloud,DC=ad,DC=test,DC=com if present. If OU is not present under GCE Instances, then error is returned. Corresponds to the JSON property ouName

Returns:

  • (String)


552
553
554
# File 'lib/google/apis/managedidentities_v1beta1/classes.rb', line 552

def ou_name
  @ou_name
end

#vm_id_tokenString

Required. Full instance id token of compute engine VM to verify instance identity. More about this: https://cloud.google.com/compute/docs/instances/ verifying-instance-identity#request_signature Corresponds to the JSON property vmIdToken

Returns:

  • (String)


559
560
561
# File 'lib/google/apis/managedidentities_v1beta1/classes.rb', line 559

def vm_id_token
  @vm_id_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



566
567
568
569
# File 'lib/google/apis/managedidentities_v1beta1/classes.rb', line 566

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