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.



29328
29329
29330
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29328

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)


29313
29314
29315
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29313

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)


29320
29321
29322
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29320

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)


29326
29327
29328
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29326

def license_count
  @license_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29333
29334
29335
29336
29337
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29333

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