Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Credential

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) ⇒ GoogleCloudApigeeV1Credential

Returns a new instance of GoogleCloudApigeeV1Credential.



1806
1807
1808
# File 'lib/google/apis/apigee_v1/classes.rb', line 1806

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

Instance Attribute Details

#api_productsArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiProductRef>

List of API products this credential can be used for. Corresponds to the JSON property apiProducts



1768
1769
1770
# File 'lib/google/apis/apigee_v1/classes.rb', line 1768

def api_products
  @api_products
end

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

List of attributes associated with this credential. Corresponds to the JSON property attributes



1773
1774
1775
# File 'lib/google/apis/apigee_v1/classes.rb', line 1773

def attributes
  @attributes
end

#consumer_keyString

Consumer key. Corresponds to the JSON property consumerKey

Returns:

  • (String)


1778
1779
1780
# File 'lib/google/apis/apigee_v1/classes.rb', line 1778

def consumer_key
  @consumer_key
end

#consumer_secretString

Secret key. Corresponds to the JSON property consumerSecret

Returns:

  • (String)


1783
1784
1785
# File 'lib/google/apis/apigee_v1/classes.rb', line 1783

def consumer_secret
  @consumer_secret
end

#expires_atFixnum

Time the credential will expire in milliseconds since epoch. Corresponds to the JSON property expiresAt

Returns:

  • (Fixnum)


1788
1789
1790
# File 'lib/google/apis/apigee_v1/classes.rb', line 1788

def expires_at
  @expires_at
end

#issued_atFixnum

Time the credential was issued in milliseconds since epoch. Corresponds to the JSON property issuedAt

Returns:

  • (Fixnum)


1793
1794
1795
# File 'lib/google/apis/apigee_v1/classes.rb', line 1793

def issued_at
  @issued_at
end

#scopesArray<String>

List of scopes to apply to the app. Specified scopes must already exist on the API product that you associate with the app. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


1799
1800
1801
# File 'lib/google/apis/apigee_v1/classes.rb', line 1799

def scopes
  @scopes
end

#statusString

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

Returns:

  • (String)


1804
1805
1806
# File 'lib/google/apis/apigee_v1/classes.rb', line 1804

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
# File 'lib/google/apis/apigee_v1/classes.rb', line 1811

def update!(**args)
  @api_products = args[:api_products] if args.key?(:api_products)
  @attributes = args[:attributes] if args.key?(:attributes)
  @consumer_key = args[:consumer_key] if args.key?(:consumer_key)
  @consumer_secret = args[:consumer_secret] if args.key?(:consumer_secret)
  @expires_at = args[:expires_at] if args.key?(:expires_at)
  @issued_at = args[:issued_at] if args.key?(:issued_at)
  @scopes = args[:scopes] if args.key?(:scopes)
  @status = args[:status] if args.key?(:status)
end