Class: Google::Apis::AndroidmanagementV1::SigninDetail

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

Overview

A resource containing sign in details for an enterprise.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SigninDetail

Returns a new instance of SigninDetail.


3138
3139
3140
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3138

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

Instance Attribute Details

#allow_personal_usageString

Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device. Corresponds to the JSON property allowPersonalUsage

Returns:

  • (String)

3113
3114
3115
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3113

def allow_personal_usage
  @allow_personal_usage
end

#qr_codeString

A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server. Corresponds to the JSON property qrCode

Returns:

  • (String)

3121
3122
3123
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3121

def qr_code
  @qr_code
end

#signin_enrollment_tokenString

An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only field generated by the server. Corresponds to the JSON property signinEnrollmentToken

Returns:

  • (String)

3127
3128
3129
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3127

def 
  @signin_enrollment_token
end

#signin_urlString

Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The sign-in endpoint should finish authentication flow with a URL in the form of https://enterprise.google.com/android/enroll?et= for a successful login, or https://enterprise.google.com/android/enroll/invalid for a failed login. Corresponds to the JSON property signinUrl

Returns:

  • (String)

3136
3137
3138
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3136

def 
  @signin_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3143
3144
3145
3146
3147
3148
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3143

def update!(**args)
  @allow_personal_usage = args[:allow_personal_usage] if args.key?(:allow_personal_usage)
  @qr_code = args[:qr_code] if args.key?(:qr_code)
  @signin_enrollment_token = args[:signin_enrollment_token] if args.key?(:signin_enrollment_token)
  @signin_url = args[:signin_url] if args.key?(:signin_url)
end