Class: Google::Apis::SpectrumV1explorer::PawsInitResponse

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

Overview

The initialization response message communicates database parameters to the requesting device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PawsInitResponse

Returns a new instance of PawsInitResponse



1054
1055
1056
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1054

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

Instance Attribute Details

#database_changeGoogle::Apis::SpectrumV1explorer::DbUpdateSpec

This message is provided by the database to notify devices of an upcoming change to the database URI. Corresponds to the JSON property databaseChange



1028
1029
1030
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1028

def database_change
  @database_change
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "spectrum# pawsInitResponse". Corresponds to the JSON property kind

Returns:

  • (String)


1034
1035
1036
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1034

def kind
  @kind
end

#ruleset_infoGoogle::Apis::SpectrumV1explorer::RulesetInfo

This contains parameters for the ruleset of a regulatory domain that is communicated using the initialization and available-spectrum processes. Corresponds to the JSON property rulesetInfo



1040
1041
1042
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1040

def ruleset_info
  @ruleset_info
end

#typeString

The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required field. Corresponds to the JSON property type

Returns:

  • (String)


1046
1047
1048
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1046

def type
  @type
end

#versionString

The PAWS version. Must be exactly 1.0. Required field. Corresponds to the JSON property version

Returns:

  • (String)


1052
1053
1054
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1052

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1059
1060
1061
1062
1063
1064
1065
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1059

def update!(**args)
  @database_change = args[:database_change] if args.key?(:database_change)
  @kind = args[:kind] if args.key?(:kind)
  @ruleset_info = args[:ruleset_info] if args.key?(:ruleset_info)
  @type = args[:type] if args.key?(:type)
  @version = args[:version] if args.key?(:version)
end