Class: Google::Apis::MemcacheV1::Instance

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

Overview

A Memorystore for Memcached instance

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Instance

Returns a new instance of Instance.



839
840
841
# File 'lib/google/apis/memcache_v1/classes.rb', line 839

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

Instance Attribute Details

#authorized_networkString

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used. Corresponds to the JSON property authorizedNetwork

Returns:

  • (String)


736
737
738
# File 'lib/google/apis/memcache_v1/classes.rb', line 736

def authorized_network
  @authorized_network
end

#create_timeString

Output only. The time the instance was created. Corresponds to the JSON property createTime

Returns:

  • (String)


741
742
743
# File 'lib/google/apis/memcache_v1/classes.rb', line 741

def create_time
  @create_time
end

#discovery_endpointString

Output only. Endpoint for the Discovery API. Corresponds to the JSON property discoveryEndpoint

Returns:

  • (String)


746
747
748
# File 'lib/google/apis/memcache_v1/classes.rb', line 746

def discovery_endpoint
  @discovery_endpoint
end

#display_nameString

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


752
753
754
# File 'lib/google/apis/memcache_v1/classes.rb', line 752

def display_name
  @display_name
end

#instance_messagesArray<Google::Apis::MemcacheV1::InstanceMessage>

List of messages that describe the current state of the Memcached instance. Corresponds to the JSON property instanceMessages



757
758
759
# File 'lib/google/apis/memcache_v1/classes.rb', line 757

def instance_messages
  @instance_messages
end

#labelsHash<String,String>

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/ docs/labeling-resources Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


764
765
766
# File 'lib/google/apis/memcache_v1/classes.rb', line 764

def labels
  @labels
end

#maintenance_policyGoogle::Apis::MemcacheV1::GoogleCloudMemcacheV1MaintenancePolicy

Maintenance policy per instance. Corresponds to the JSON property maintenancePolicy



769
770
771
# File 'lib/google/apis/memcache_v1/classes.rb', line 769

def maintenance_policy
  @maintenance_policy
end

#maintenance_scheduleGoogle::Apis::MemcacheV1::MaintenanceSchedule

Upcoming maintenance schedule. Corresponds to the JSON property maintenanceSchedule



774
775
776
# File 'lib/google/apis/memcache_v1/classes.rb', line 774

def maintenance_schedule
  @maintenance_schedule
end

#memcache_full_versionString

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached- 1.5.16". Corresponds to the JSON property memcacheFullVersion

Returns:

  • (String)


782
783
784
# File 'lib/google/apis/memcache_v1/classes.rb', line 782

def memcache_full_version
  @memcache_full_version
end

#memcache_nodesArray<Google::Apis::MemcacheV1::Node>

Output only. List of Memcached nodes. Refer to Node message for more details. Corresponds to the JSON property memcacheNodes

Returns:



787
788
789
# File 'lib/google/apis/memcache_v1/classes.rb', line 787

def memcache_nodes
  @memcache_nodes
end

#memcache_versionString

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version. Corresponds to the JSON property memcacheVersion

Returns:

  • (String)


795
796
797
# File 'lib/google/apis/memcache_v1/classes.rb', line 795

def memcache_version
  @memcache_version
end

#nameString

Required. Unique name of the resource in this scope including project and location using the form: projects/project_id/locations/location_id/ instances/instance_id`Note: Memcached instances are managed and addressed at the regional level solocation_idhere refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. Corresponds to the JSON propertyname`

Returns:

  • (String)


805
806
807
# File 'lib/google/apis/memcache_v1/classes.rb', line 805

def name
  @name
end

#node_configGoogle::Apis::MemcacheV1::NodeConfig

Configuration for a Memcached Node. Corresponds to the JSON property nodeConfig



810
811
812
# File 'lib/google/apis/memcache_v1/classes.rb', line 810

def node_config
  @node_config
end

#node_countFixnum

Required. Number of nodes in the Memcached instance. Corresponds to the JSON property nodeCount

Returns:

  • (Fixnum)


815
816
817
# File 'lib/google/apis/memcache_v1/classes.rb', line 815

def node_count
  @node_count
end

#parametersGoogle::Apis::MemcacheV1::MemcacheParameters

User defined parameters to apply to the memcached process on each node. Corresponds to the JSON property parameters



820
821
822
# File 'lib/google/apis/memcache_v1/classes.rb', line 820

def parameters
  @parameters
end

#stateString

Output only. The state of this Memcached instance. Corresponds to the JSON property state

Returns:

  • (String)


825
826
827
# File 'lib/google/apis/memcache_v1/classes.rb', line 825

def state
  @state
end

#update_timeString

Output only. The time the instance was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


830
831
832
# File 'lib/google/apis/memcache_v1/classes.rb', line 830

def update_time
  @update_time
end

#zonesArray<String>

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance. Corresponds to the JSON property zones

Returns:

  • (Array<String>)


837
838
839
# File 'lib/google/apis/memcache_v1/classes.rb', line 837

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
# File 'lib/google/apis/memcache_v1/classes.rb', line 844

def update!(**args)
  @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
  @create_time = args[:create_time] if args.key?(:create_time)
  @discovery_endpoint = args[:discovery_endpoint] if args.key?(:discovery_endpoint)
  @display_name = args[:display_name] if args.key?(:display_name)
  @instance_messages = args[:instance_messages] if args.key?(:instance_messages)
  @labels = args[:labels] if args.key?(:labels)
  @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
  @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
  @memcache_full_version = args[:memcache_full_version] if args.key?(:memcache_full_version)
  @memcache_nodes = args[:memcache_nodes] if args.key?(:memcache_nodes)
  @memcache_version = args[:memcache_version] if args.key?(:memcache_version)
  @name = args[:name] if args.key?(:name)
  @node_config = args[:node_config] if args.key?(:node_config)
  @node_count = args[:node_count] if args.key?(:node_count)
  @parameters = args[:parameters] if args.key?(:parameters)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
  @zones = args[:zones] if args.key?(:zones)
end