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.



29974
29975
29976
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29974

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)


29959
29960
29961
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29959

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)


29966
29967
29968
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29966

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)


29972
29973
29974
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29972

def license_count
  @license_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29979
29980
29981
29982
29983
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 29979

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