Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRetractLicenseConfigRequest

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

Overview

Request message for LicenseConfigService.RetractLicenseConfig method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaRetractLicenseConfigRequest

Returns a new instance of GoogleCloudDiscoveryengineV1betaRetractLicenseConfigRequest.



29022
29023
29024
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29022

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

Instance Attribute Details

#full_retractBoolean Also known as: full_retract?

Optional. If set to true, retract the entire license config. Otherwise, retract the specified license count. Corresponds to the JSON property fullRetract

Returns:

  • (Boolean)


29007
29008
29009
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29007

def full_retract
  @full_retract
end

#license_configString

Required. Full resource name of LicenseConfig. Format: projects/project/ locations/location/licenseConfigs/license_config_id`. Corresponds to the JSON propertylicenseConfig`

Returns:

  • (String)


29014
29015
29016
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29014

def license_config
  @license_config
end

#license_countFixnum

Optional. The number of licenses to retract. Only used when full_retract is false. Corresponds to the JSON property licenseCount

Returns:

  • (Fixnum)


29020
29021
29022
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29020

def license_count
  @license_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29027
29028
29029
29030
29031
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29027

def update!(**args)
  @full_retract = args[:full_retract] if args.key?(:full_retract)
  @license_config = args[:license_config] if args.key?(:license_config)
  @license_count = args[:license_count] if args.key?(:license_count)
end