Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperApp

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1DeveloperApp

Returns a new instance of GoogleCloudApigeeV1DeveloperApp.



2523
2524
2525
# File 'lib/google/apis/apigee_v1/classes.rb', line 2523

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

Instance Attribute Details

#api_productsArray<String>

List of API products associated with the developer app. Corresponds to the JSON property apiProducts

Returns:

  • (Array<String>)


2456
2457
2458
# File 'lib/google/apis/apigee_v1/classes.rb', line 2456

def api_products
  @api_products
end

#app_familyString

Developer app family. Corresponds to the JSON property appFamily

Returns:

  • (String)


2461
2462
2463
# File 'lib/google/apis/apigee_v1/classes.rb', line 2461

def app_family
  @app_family
end

#app_idString

ID of the developer app. Corresponds to the JSON property appId

Returns:

  • (String)


2466
2467
2468
# File 'lib/google/apis/apigee_v1/classes.rb', line 2466

def app_id
  @app_id
end

#attributesArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>

List of attributes for the developer app. Corresponds to the JSON property attributes



2471
2472
2473
# File 'lib/google/apis/apigee_v1/classes.rb', line 2471

def attributes
  @attributes
end

#callback_urlString

Callback URL used by OAuth 2.0 authorization servers to communicate authorization codes back to developer apps. Corresponds to the JSON property callbackUrl

Returns:

  • (String)


2477
2478
2479
# File 'lib/google/apis/apigee_v1/classes.rb', line 2477

def callback_url
  @callback_url
end

#created_atFixnum

Output only. Time the developer app was created in milliseconds since epoch. Corresponds to the JSON property createdAt

Returns:

  • (Fixnum)


2482
2483
2484
# File 'lib/google/apis/apigee_v1/classes.rb', line 2482

def created_at
  @created_at
end

#credentialsArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Credential>

Output only. Set of credentials for the developer app consisting of the consumer key/secret pairs associated with the API products. Corresponds to the JSON property credentials



2488
2489
2490
# File 'lib/google/apis/apigee_v1/classes.rb', line 2488

def credentials
  @credentials
end

#developer_idString

ID of the developer. Corresponds to the JSON property developerId

Returns:

  • (String)


2493
2494
2495
# File 'lib/google/apis/apigee_v1/classes.rb', line 2493

def developer_id
  @developer_id
end

#key_expires_inFixnum

Expiration time, in milliseconds, for the consumer key that is generated for the developer app. If not set or left to the default value of -1, the API key never expires. The expiration time can't be updated after it is set. Corresponds to the JSON property keyExpiresIn

Returns:

  • (Fixnum)


2500
2501
2502
# File 'lib/google/apis/apigee_v1/classes.rb', line 2500

def key_expires_in
  @key_expires_in
end

#last_modified_atFixnum

Output only. Time the developer app was modified in milliseconds since epoch. Corresponds to the JSON property lastModifiedAt

Returns:

  • (Fixnum)


2505
2506
2507
# File 'lib/google/apis/apigee_v1/classes.rb', line 2505

def last_modified_at
  @last_modified_at
end

#nameString

Name of the developer app. Corresponds to the JSON property name

Returns:

  • (String)


2510
2511
2512
# File 'lib/google/apis/apigee_v1/classes.rb', line 2510

def name
  @name
end

#scopesArray<String>

Scopes to apply to the developer app. The specified scopes must already exist for the API product that you associate with the developer app. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


2516
2517
2518
# File 'lib/google/apis/apigee_v1/classes.rb', line 2516

def scopes
  @scopes
end

#statusString

Status of the credential. Valid values include approved or revoked. Corresponds to the JSON property status

Returns:

  • (String)


2521
2522
2523
# File 'lib/google/apis/apigee_v1/classes.rb', line 2521

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
# File 'lib/google/apis/apigee_v1/classes.rb', line 2528

def update!(**args)
  @api_products = args[:api_products] if args.key?(:api_products)
  @app_family = args[:app_family] if args.key?(:app_family)
  @app_id = args[:app_id] if args.key?(:app_id)
  @attributes = args[:attributes] if args.key?(:attributes)
  @callback_url = args[:callback_url] if args.key?(:callback_url)
  @created_at = args[:created_at] if args.key?(:created_at)
  @credentials = args[:credentials] if args.key?(:credentials)
  @developer_id = args[:developer_id] if args.key?(:developer_id)
  @key_expires_in = args[:key_expires_in] if args.key?(:key_expires_in)
  @last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
  @name = args[:name] if args.key?(:name)
  @scopes = args[:scopes] if args.key?(:scopes)
  @status = args[:status] if args.key?(:status)
end