1"""Generated message classes for memcache version v1beta2.
2
3Google Cloud Memorystore for Memcached API is used for creating and managing
4Memcached instances in GCP.
5"""
6# NOTE: This file is autogenerated and should not be edited by hand.
7
8from __future__ import absolute_import
9
10from apitools.base.protorpclite import messages as _messages
11from apitools.base.py import encoding
12from apitools.base.py import extra_types
13
14
15package = 'memcache'
16
17
18class ApplyParametersRequest(_messages.Message):
19  r"""Request for ApplyParameters.
20
21  Fields:
22    applyAll: Whether to apply instance-level parameter group to all nodes. If
23      set to true, users are restricted from specifying individual nodes, and
24      `ApplyParameters` updates all nodes within the instance.
25    nodeIds: Nodes to which the instance-level parameter group is applied.
26  """
27
28  applyAll = _messages.BooleanField(1)
29  nodeIds = _messages.StringField(2, repeated=True)
30
31
32class ApplySoftwareUpdateRequest(_messages.Message):
33  r"""Request for ApplySoftwareUpdate.
34
35  Fields:
36    applyAll: Whether to apply the update to all nodes. If set to true, will
37      explicitly restrict users from specifying any nodes, and apply software
38      update to all nodes (where applicable) within the instance.
39    nodeIds: Nodes to which we should apply the update to. Note all the
40      selected nodes are updated in parallel.
41  """
42
43  applyAll = _messages.BooleanField(1)
44  nodeIds = _messages.StringField(2, repeated=True)
45
46
47class CancelOperationRequest(_messages.Message):
48  r"""The request message for Operations.CancelOperation."""
49
50
51class DailyCycle(_messages.Message):
52  r"""Time window specified for daily operations.
53
54  Fields:
55    duration: Output only. Duration of the time window, set by service
56      producer.
57    startTime: Time within the day to start the operations.
58  """
59
60  duration = _messages.StringField(1)
61  startTime = _messages.MessageField('TimeOfDay', 2)
62
63
64class Date(_messages.Message):
65  r"""Represents a whole or partial calendar date, such as a birthday. The
66  time of day and time zone are either specified elsewhere or are
67  insignificant. The date is relative to the Gregorian Calendar. This can
68  represent one of the following: * A full date, with non-zero year, month,
69  and day values * A month and day value, with a zero year, such as an
70  anniversary * A year on its own, with zero month and day values * A year and
71  month value, with a zero day, such as a credit card expiration date Related
72  types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
73
74  Fields:
75    day: Day of a month. Must be from 1 to 31 and valid for the year and
76      month, or 0 to specify a year by itself or a year and month where the
77      day isn't significant.
78    month: Month of a year. Must be from 1 to 12, or 0 to specify a year
79      without a month and day.
80    year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
81      without a year.
82  """
83
84  day = _messages.IntegerField(1, variant=_messages.Variant.INT32)
85  month = _messages.IntegerField(2, variant=_messages.Variant.INT32)
86  year = _messages.IntegerField(3, variant=_messages.Variant.INT32)
87
88
89class DenyMaintenancePeriod(_messages.Message):
90  r"""DenyMaintenancePeriod definition. Maintenance is forbidden within the
91  deny period. The start_date must be less than the end_date.
92
93  Fields:
94    endDate: Deny period end date. This can be: * A full date, with non-zero
95      year, month and day values. * A month and day value, with a zero year.
96      Allows recurring deny periods each year. Date matching this period will
97      have to be before the end.
98    startDate: Deny period start date. This can be: * A full date, with non-
99      zero year, month and day values. * A month and day value, with a zero
100      year. Allows recurring deny periods each year. Date matching this period
101      will have to be the same or after the start.
102    time: Time in UTC when the Blackout period starts on start_date and ends
103      on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC
104  """
105
106  endDate = _messages.MessageField('Date', 1)
107  startDate = _messages.MessageField('Date', 2)
108  time = _messages.MessageField('TimeOfDay', 3)
109
110
111class Empty(_messages.Message):
112  r"""A generic empty message that you can re-use to avoid defining duplicated
113  empty messages in your APIs. A typical example is to use it as the request
114  or the response type of an API method. For instance: service Foo { rpc
115  Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON
116  representation for `Empty` is empty JSON object `{}`.
117  """
118
119
120
121class GoogleCloudMemcacheV1beta2LocationMetadata(_messages.Message):
122  r"""Metadata for the given google.cloud.location.Location.
123
124  Messages:
125    AvailableZonesValue: Output only. The set of available zones in the
126      location. The map is keyed by the lowercase ID of each zone, as defined
127      by GCE. These keys can be specified in the `zones` field when creating a
128      Memcached instance.
129
130  Fields:
131    availableZones: Output only. The set of available zones in the location.
132      The map is keyed by the lowercase ID of each zone, as defined by GCE.
133      These keys can be specified in the `zones` field when creating a
134      Memcached instance.
135  """
136
137  @encoding.MapUnrecognizedFields('additionalProperties')
138  class AvailableZonesValue(_messages.Message):
139    r"""Output only. The set of available zones in the location. The map is
140    keyed by the lowercase ID of each zone, as defined by GCE. These keys can
141    be specified in the `zones` field when creating a Memcached instance.
142
143    Messages:
144      AdditionalProperty: An additional property for a AvailableZonesValue
145        object.
146
147    Fields:
148      additionalProperties: Additional properties of type AvailableZonesValue
149    """
150
151    class AdditionalProperty(_messages.Message):
152      r"""An additional property for a AvailableZonesValue object.
153
154      Fields:
155        key: Name of the additional property.
156        value: A ZoneMetadata attribute.
157      """
158
159      key = _messages.StringField(1)
160      value = _messages.MessageField('ZoneMetadata', 2)
161
162    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
163
164  availableZones = _messages.MessageField('AvailableZonesValue', 1)
165
166
167class GoogleCloudMemcacheV1beta2OperationMetadata(_messages.Message):
168  r"""Represents the metadata of a long-running operation.
169
170  Fields:
171    apiVersion: Output only. API version used to start the operation.
172    cancelRequested: Output only. Identifies whether the user has requested
173      cancellation of the operation. Operations that have successfully been
174      cancelled have Operation.error value with a google.rpc.Status.code of 1,
175      corresponding to `Code.CANCELLED`.
176    createTime: Output only. Time when the operation was created.
177    endTime: Output only. Time when the operation finished running.
178    statusDetail: Output only. Human-readable status of the operation, if any.
179    target: Output only. Server-defined resource path for the target of the
180      operation.
181    verb: Output only. Name of the verb executed by the operation.
182  """
183
184  apiVersion = _messages.StringField(1)
185  cancelRequested = _messages.BooleanField(2)
186  createTime = _messages.StringField(3)
187  endTime = _messages.StringField(4)
188  statusDetail = _messages.StringField(5)
189  target = _messages.StringField(6)
190  verb = _messages.StringField(7)
191
192
193class GoogleCloudSaasacceleratorManagementProvidersV1Instance(_messages.Message):
194  r"""A GoogleCloudSaasacceleratorManagementProvidersV1Instance object.
195
196  Enums:
197    StateValueValuesEnum: Output only. Current lifecycle state of the resource
198      (e.g. if it's being created or ready to use).
199
200  Messages:
201    LabelsValue: Optional. Resource labels to represent user provided
202      metadata. Each label is a key-value pair, where both the key and the
203      value are arbitrary strings provided by the user.
204    MaintenancePolicyNamesValue: Deprecated. The MaintenancePolicies that have
205      been attached to the instance. The key must be of the type name of the
206      oneof policy name defined in MaintenancePolicy, and the referenced
207      policy must define the same policy type. For complete details of
208      MaintenancePolicy, please refer to go/cloud-saas-mw-ug.
209    MaintenanceSchedulesValue: The MaintenanceSchedule contains the scheduling
210      information of published maintenance schedule with same key as
211      software_versions.
212    ProducerMetadataValue: Output only. Custom string attributes used
213      primarily to expose producer-specific information in monitoring
214      dashboards. See go/get-instance-metadata.
215    SoftwareVersionsValue: Software versions that are used to deploy this
216      instance. This can be mutated by rollout services.
217
218  Fields:
219    consumerDefinedName: consumer_defined_name is the name that is set by the
220      consumer. On the other hand Name field represents system-assigned id of
221      an instance so consumers are not necessarily aware of it.
222      consumer_defined_name is used for notification/UI purposes for consumer
223      to recognize their instances.
224    createTime: Output only. Timestamp when the resource was created.
225    labels: Optional. Resource labels to represent user provided metadata.
226      Each label is a key-value pair, where both the key and the value are
227      arbitrary strings provided by the user.
228    maintenancePolicyNames: Deprecated. The MaintenancePolicies that have been
229      attached to the instance. The key must be of the type name of the oneof
230      policy name defined in MaintenancePolicy, and the referenced policy must
231      define the same policy type. For complete details of MaintenancePolicy,
232      please refer to go/cloud-saas-mw-ug.
233    maintenanceSchedules: The MaintenanceSchedule contains the scheduling
234      information of published maintenance schedule with same key as
235      software_versions.
236    maintenanceSettings: Optional. The MaintenanceSettings associated with
237      instance.
238    name: Unique name of the resource. It uses the form:
239      `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
240    producerMetadata: Output only. Custom string attributes used primarily to
241      expose producer-specific information in monitoring dashboards. See
242      go/get-instance-metadata.
243    provisionedResources: Output only. The list of data plane resources
244      provisioned for this instance, e.g. compute VMs. See go/get-instance-
245      metadata.
246    slmInstanceTemplate: Link to the SLM instance template. Only populated
247      when updating SLM instances via SSA's Actuation service adaptor. Service
248      producers with custom control plane (e.g. Cloud SQL) doesn't need to
249      populate this field. Instead they should use software_versions.
250    sloMetadata: Output only. SLO metadata for instance classification in the
251      Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for
252      feature description.
253    softwareVersions: Software versions that are used to deploy this instance.
254      This can be mutated by rollout services.
255    state: Output only. Current lifecycle state of the resource (e.g. if it's
256      being created or ready to use).
257    tenantProjectId: Output only. ID of the associated GCP tenant project. See
258      go/get-instance-metadata.
259    updateTime: Output only. Timestamp when the resource was last modified.
260  """
261
262  class StateValueValuesEnum(_messages.Enum):
263    r"""Output only. Current lifecycle state of the resource (e.g. if it's
264    being created or ready to use).
265
266    Values:
267      STATE_UNSPECIFIED: Unspecified state.
268      CREATING: Instance is being created.
269      READY: Instance has been created and is ready to use.
270      UPDATING: Instance is being updated.
271      REPAIRING: Instance is unheathy and under repair.
272      DELETING: Instance is being deleted.
273      ERROR: Instance encountered an error and is in indeterministic state.
274    """
275    STATE_UNSPECIFIED = 0
276    CREATING = 1
277    READY = 2
278    UPDATING = 3
279    REPAIRING = 4
280    DELETING = 5
281    ERROR = 6
282
283  @encoding.MapUnrecognizedFields('additionalProperties')
284  class LabelsValue(_messages.Message):
285    r"""Optional. Resource labels to represent user provided metadata. Each
286    label is a key-value pair, where both the key and the value are arbitrary
287    strings provided by the user.
288
289    Messages:
290      AdditionalProperty: An additional property for a LabelsValue object.
291
292    Fields:
293      additionalProperties: Additional properties of type LabelsValue
294    """
295
296    class AdditionalProperty(_messages.Message):
297      r"""An additional property for a LabelsValue object.
298
299      Fields:
300        key: Name of the additional property.
301        value: A string attribute.
302      """
303
304      key = _messages.StringField(1)
305      value = _messages.StringField(2)
306
307    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
308
309  @encoding.MapUnrecognizedFields('additionalProperties')
310  class MaintenancePolicyNamesValue(_messages.Message):
311    r"""Deprecated. The MaintenancePolicies that have been attached to the
312    instance. The key must be of the type name of the oneof policy name
313    defined in MaintenancePolicy, and the referenced policy must define the
314    same policy type. For complete details of MaintenancePolicy, please refer
315    to go/cloud-saas-mw-ug.
316
317    Messages:
318      AdditionalProperty: An additional property for a
319        MaintenancePolicyNamesValue object.
320
321    Fields:
322      additionalProperties: Additional properties of type
323        MaintenancePolicyNamesValue
324    """
325
326    class AdditionalProperty(_messages.Message):
327      r"""An additional property for a MaintenancePolicyNamesValue object.
328
329      Fields:
330        key: Name of the additional property.
331        value: A string attribute.
332      """
333
334      key = _messages.StringField(1)
335      value = _messages.StringField(2)
336
337    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
338
339  @encoding.MapUnrecognizedFields('additionalProperties')
340  class MaintenanceSchedulesValue(_messages.Message):
341    r"""The MaintenanceSchedule contains the scheduling information of
342    published maintenance schedule with same key as software_versions.
343
344    Messages:
345      AdditionalProperty: An additional property for a
346        MaintenanceSchedulesValue object.
347
348    Fields:
349      additionalProperties: Additional properties of type
350        MaintenanceSchedulesValue
351    """
352
353    class AdditionalProperty(_messages.Message):
354      r"""An additional property for a MaintenanceSchedulesValue object.
355
356      Fields:
357        key: Name of the additional property.
358        value: A
359          GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
360          attribute.
361      """
362
363      key = _messages.StringField(1)
364      value = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule', 2)
365
366    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
367
368  @encoding.MapUnrecognizedFields('additionalProperties')
369  class ProducerMetadataValue(_messages.Message):
370    r"""Output only. Custom string attributes used primarily to expose
371    producer-specific information in monitoring dashboards. See go/get-
372    instance-metadata.
373
374    Messages:
375      AdditionalProperty: An additional property for a ProducerMetadataValue
376        object.
377
378    Fields:
379      additionalProperties: Additional properties of type
380        ProducerMetadataValue
381    """
382
383    class AdditionalProperty(_messages.Message):
384      r"""An additional property for a ProducerMetadataValue object.
385
386      Fields:
387        key: Name of the additional property.
388        value: A string attribute.
389      """
390
391      key = _messages.StringField(1)
392      value = _messages.StringField(2)
393
394    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
395
396  @encoding.MapUnrecognizedFields('additionalProperties')
397  class SoftwareVersionsValue(_messages.Message):
398    r"""Software versions that are used to deploy this instance. This can be
399    mutated by rollout services.
400
401    Messages:
402      AdditionalProperty: An additional property for a SoftwareVersionsValue
403        object.
404
405    Fields:
406      additionalProperties: Additional properties of type
407        SoftwareVersionsValue
408    """
409
410    class AdditionalProperty(_messages.Message):
411      r"""An additional property for a SoftwareVersionsValue object.
412
413      Fields:
414        key: Name of the additional property.
415        value: A string attribute.
416      """
417
418      key = _messages.StringField(1)
419      value = _messages.StringField(2)
420
421    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
422
423  consumerDefinedName = _messages.StringField(1)
424  createTime = _messages.StringField(2)
425  labels = _messages.MessageField('LabelsValue', 3)
426  maintenancePolicyNames = _messages.MessageField('MaintenancePolicyNamesValue', 4)
427  maintenanceSchedules = _messages.MessageField('MaintenanceSchedulesValue', 5)
428  maintenanceSettings = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings', 6)
429  name = _messages.StringField(7)
430  producerMetadata = _messages.MessageField('ProducerMetadataValue', 8)
431  provisionedResources = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource', 9, repeated=True)
432  slmInstanceTemplate = _messages.StringField(10)
433  sloMetadata = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata', 11)
434  softwareVersions = _messages.MessageField('SoftwareVersionsValue', 12)
435  state = _messages.EnumField('StateValueValuesEnum', 13)
436  tenantProjectId = _messages.StringField(14)
437  updateTime = _messages.StringField(15)
438
439
440class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule(_messages.Message):
441  r"""Maintenance schedule which is exposed to customer and potentially end
442  user, indicating published upcoming future maintenance schedule
443
444  Fields:
445    canReschedule: Can this scheduled update be rescheduled? By default, it's
446      true and API needs to do explicitly check whether it's set, if it's set
447      as false explicitly, it's false
448    endTime: The scheduled end time for the maintenance.
449    rolloutManagementPolicy: The rollout management policy this maintenance
450      schedule is associated with. When doing reschedule update request, the
451      reschedule should be against this given policy.
452    scheduleDeadlineTime: schedule_deadline_time is the time deadline any
453      schedule start time cannot go beyond, including reschedule. It's
454      normally the initial schedule start time plus maintenance window length
455      (1 day or 1 week). Maintenance cannot be scheduled to start beyond this
456      deadline.
457    startTime: The scheduled start time for the maintenance.
458  """
459
460  canReschedule = _messages.BooleanField(1)
461  endTime = _messages.StringField(2)
462  rolloutManagementPolicy = _messages.StringField(3)
463  scheduleDeadlineTime = _messages.StringField(4)
464  startTime = _messages.StringField(5)
465
466
467class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings(_messages.Message):
468  r"""Maintenance settings associated with instance. Allows service producers
469  and end users to assign settings that controls maintenance on this instance.
470
471  Messages:
472    MaintenancePoliciesValue: Optional. The MaintenancePolicies that have been
473      attached to the instance. The key must be of the type name of the oneof
474      policy name defined in MaintenancePolicy, and the embedded policy must
475      define the same policy type. For complete details of MaintenancePolicy,
476      please refer to go/cloud-saas-mw-ug. If only the name is needed (like in
477      the deprecated Instance.maintenance_policy_names field) then only
478      populate MaintenancePolicy.name.
479
480  Fields:
481    exclude: Optional. Exclude instance from maintenance. When true, rollout
482      service will not attempt maintenance on the instance. Rollout service
483      will include the instance in reported rollout progress as not attempted.
484    isRollback: Optional. If the update call is triggered from rollback, set
485      the value as true.
486    maintenancePolicies: Optional. The MaintenancePolicies that have been
487      attached to the instance. The key must be of the type name of the oneof
488      policy name defined in MaintenancePolicy, and the embedded policy must
489      define the same policy type. For complete details of MaintenancePolicy,
490      please refer to go/cloud-saas-mw-ug. If only the name is needed (like in
491      the deprecated Instance.maintenance_policy_names field) then only
492      populate MaintenancePolicy.name.
493  """
494
495  @encoding.MapUnrecognizedFields('additionalProperties')
496  class MaintenancePoliciesValue(_messages.Message):
497    r"""Optional. The MaintenancePolicies that have been attached to the
498    instance. The key must be of the type name of the oneof policy name
499    defined in MaintenancePolicy, and the embedded policy must define the same
500    policy type. For complete details of MaintenancePolicy, please refer to
501    go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated
502    Instance.maintenance_policy_names field) then only populate
503    MaintenancePolicy.name.
504
505    Messages:
506      AdditionalProperty: An additional property for a
507        MaintenancePoliciesValue object.
508
509    Fields:
510      additionalProperties: Additional properties of type
511        MaintenancePoliciesValue
512    """
513
514    class AdditionalProperty(_messages.Message):
515      r"""An additional property for a MaintenancePoliciesValue object.
516
517      Fields:
518        key: Name of the additional property.
519        value: A MaintenancePolicy attribute.
520      """
521
522      key = _messages.StringField(1)
523      value = _messages.MessageField('MaintenancePolicy', 2)
524
525    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
526
527  exclude = _messages.BooleanField(1)
528  isRollback = _messages.BooleanField(2)
529  maintenancePolicies = _messages.MessageField('MaintenancePoliciesValue', 3)
530
531
532class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata(_messages.Message):
533  r"""Node information for custom per-node SLO implementations. SSA does not
534  support per-node SLO, but producers can populate per-node information in
535  SloMetadata for custom precomputations. SSA Eligibility Exporter will emit
536  per-node metric based on this information.
537
538  Fields:
539    exclusions: By default node is eligible if instance is eligible. But
540      individual node might be excluded from SLO by adding entry here. For
541      semantic see SloMetadata.exclusions. If both instance and node level
542      exclusions are present for time period, the node level's reason will be
543      reported by Eligibility Exporter.
544    location: The location of the node, if different from instance location.
545    nodeId: The id of the node. This should be equal to
546      SaasInstanceNode.node_id.
547  """
548
549  exclusions = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion', 1, repeated=True)
550  location = _messages.StringField(2)
551  nodeId = _messages.StringField(3)
552
553
554class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility(_messages.Message):
555  r"""PerSliSloEligibility is a mapping from an SLI name to eligibility.
556
557  Messages:
558    EligibilitiesValue: An entry in the eligibilities map specifies an
559      eligibility for a particular SLI for the given instance. The SLI key in
560      the name must be a valid SLI name specified in the Eligibility Exporter
561      binary flags otherwise an error will be emitted by Eligibility Exporter
562      and the oncaller will be alerted. If an SLI has been defined in the
563      binary flags but the eligibilities map does not contain it, the
564      corresponding SLI time series will not be emitted by the Eligibility
565      Exporter. This ensures a smooth rollout and compatibility between the
566      data produced by different versions of the Eligibility Exporters. If
567      eligibilities map contains a key for an SLI which has not been declared
568      in the binary flags, there will be an error message emitted in the
569      Eligibility Exporter log and the metric for the SLI in question will not
570      be emitted.
571
572  Fields:
573    eligibilities: An entry in the eligibilities map specifies an eligibility
574      for a particular SLI for the given instance. The SLI key in the name
575      must be a valid SLI name specified in the Eligibility Exporter binary
576      flags otherwise an error will be emitted by Eligibility Exporter and the
577      oncaller will be alerted. If an SLI has been defined in the binary flags
578      but the eligibilities map does not contain it, the corresponding SLI
579      time series will not be emitted by the Eligibility Exporter. This
580      ensures a smooth rollout and compatibility between the data produced by
581      different versions of the Eligibility Exporters. If eligibilities map
582      contains a key for an SLI which has not been declared in the binary
583      flags, there will be an error message emitted in the Eligibility
584      Exporter log and the metric for the SLI in question will not be emitted.
585  """
586
587  @encoding.MapUnrecognizedFields('additionalProperties')
588  class EligibilitiesValue(_messages.Message):
589    r"""An entry in the eligibilities map specifies an eligibility for a
590    particular SLI for the given instance. The SLI key in the name must be a
591    valid SLI name specified in the Eligibility Exporter binary flags
592    otherwise an error will be emitted by Eligibility Exporter and the
593    oncaller will be alerted. If an SLI has been defined in the binary flags
594    but the eligibilities map does not contain it, the corresponding SLI time
595    series will not be emitted by the Eligibility Exporter. This ensures a
596    smooth rollout and compatibility between the data produced by different
597    versions of the Eligibility Exporters. If eligibilities map contains a key
598    for an SLI which has not been declared in the binary flags, there will be
599    an error message emitted in the Eligibility Exporter log and the metric
600    for the SLI in question will not be emitted.
601
602    Messages:
603      AdditionalProperty: An additional property for a EligibilitiesValue
604        object.
605
606    Fields:
607      additionalProperties: Additional properties of type EligibilitiesValue
608    """
609
610    class AdditionalProperty(_messages.Message):
611      r"""An additional property for a EligibilitiesValue object.
612
613      Fields:
614        key: Name of the additional property.
615        value: A GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
616          attribute.
617      """
618
619      key = _messages.StringField(1)
620      value = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility', 2)
621
622    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
623
624  eligibilities = _messages.MessageField('EligibilitiesValue', 1)
625
626
627class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource(_messages.Message):
628  r"""Describes provisioned dataplane resources.
629
630  Fields:
631    resourceType: Type of the resource. This can be either a GCP resource or a
632      custom one (e.g. another cloud provider's VM). For GCP compute resources
633      use singular form of the names listed in GCP compute API documentation
634      (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed
635      with 'compute-', for example: 'compute-instance', 'compute-disk',
636      'compute-autoscaler'.
637    resourceUrl: URL identifying the resource, e.g.
638      "https://www.googleapis.com/compute/v1/projects/...)".
639  """
640
641  resourceType = _messages.StringField(1)
642  resourceUrl = _messages.StringField(2)
643
644
645class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility(_messages.Message):
646  r"""SloEligibility is a tuple containing eligibility value: true if an
647  instance is eligible for SLO calculation or false if it should be excluded
648  from all SLO-related calculations along with a user-defined reason.
649
650  Fields:
651    eligible: Whether an instance is eligible or ineligible.
652    reason: User-defined reason for the current value of instance eligibility.
653      Usually, this can be directly mapped to the internal state. An empty
654      reason is allowed.
655  """
656
657  eligible = _messages.BooleanField(1)
658  reason = _messages.StringField(2)
659
660
661class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion(_messages.Message):
662  r"""SloExclusion represents an exclusion in SLI calculation applies to all
663  SLOs.
664
665  Fields:
666    duration: Exclusion duration. No restrictions on the possible values. When
667      an ongoing operation is taking longer than initially expected, an
668      existing entry in the exclusion list can be updated by extending the
669      duration. This is supported by the subsystem exporting eligibility data
670      as long as such extension is committed at least 10 minutes before the
671      original exclusion expiration - otherwise it is possible that there will
672      be "gaps" in the exclusion application in the exported timeseries.
673    reason: Human-readable reason for the exclusion. This should be a static
674      string (e.g. "Disruptive update in progress") and should not contain
675      dynamically generated data (e.g. instance name). Can be left empty.
676    sliName: Name of an SLI that this exclusion applies to. Can be left empty,
677      signaling that the instance should be excluded from all SLIs.
678    startTime: Start time of the exclusion. No alignment (e.g. to a full
679      minute) needed.
680  """
681
682  duration = _messages.StringField(1)
683  reason = _messages.StringField(2)
684  sliName = _messages.StringField(3)
685  startTime = _messages.StringField(4)
686
687
688class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata(_messages.Message):
689  r"""SloMetadata contains resources required for proper SLO classification of
690  the instance.
691
692  Fields:
693    eligibility: Optional. Global per-instance SLI eligibility which applies
694      to all defined SLIs. Exactly one of 'eligibility' and
695      'per_sli_eligibility' fields must be used.
696    exclusions: List of SLO exclusion windows. When multiple entries in the
697      list match (matching the exclusion time-window against current time
698      point) the exclusion reason used in the first matching entry will be
699      published. It is not needed to include expired exclusion in this list,
700      as only the currently applicable exclusions are taken into account by
701      the eligibility exporting subsystem (the historical state of exclusions
702      will be reflected in the historically produced timeseries regardless of
703      the current state). This field can be used to mark the instance as
704      temporary ineligible for the purpose of SLO calculation. For permanent
705      instance SLO exclusion, use of custom instance eligibility is
706      recommended. See 'eligibility' field below.
707    nodes: Optional. List of nodes. Some producers need to use per-node
708      metadata to calculate SLO. This field allows such producers to publish
709      per-node SLO meta data, which will be consumed by SSA Eligibility
710      Exporter and published in the form of per node metric to Monarch.
711    perSliEligibility: Optional. Multiple per-instance SLI eligibilities which
712      apply for individual SLIs. Exactly one of 'eligibility' and
713      'per_sli_eligibility' fields must be used.
714    tier: Name of the SLO tier the Instance belongs to. This name will be
715      expected to match the tiers specified in the service SLO configuration.
716      Field is mandatory and must not be empty.
717  """
718
719  eligibility = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility', 1)
720  exclusions = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion', 2, repeated=True)
721  nodes = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata', 3, repeated=True)
722  perSliEligibility = _messages.MessageField('GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility', 4)
723  tier = _messages.StringField(5)
724
725
726class Instance(_messages.Message):
727  r"""A Memorystore for Memcached instance
728
729  Enums:
730    MemcacheVersionValueValuesEnum: The major version of Memcached software.
731      If not provided, latest supported version will be used. Currently the
732      latest supported major version is `MEMCACHE_1_5`. The minor version will
733      be automatically determined by our system based on the latest supported
734      minor version.
735    StateValueValuesEnum: Output only. The state of this Memcached instance.
736
737  Messages:
738    LabelsValue: Resource labels to represent user-provided metadata. Refer to
739      cloud documentation on labels for more details.
740      https://cloud.google.com/compute/docs/labeling-resources
741
742  Fields:
743    authorizedNetwork: The full name of the Google Compute Engine
744      [network](https://cloud.google.com/vpc/docs/vpc) to which the instance
745      is connected. If left unspecified, the `default` network will be used.
746    createTime: Output only. The time the instance was created.
747    discoveryEndpoint: Output only. Endpoint for the Discovery API.
748    displayName: User provided name for the instance, which is only used for
749      display purposes. Cannot be more than 80 characters.
750    instanceMessages: List of messages that describe the current state of the
751      Memcached instance.
752    labels: Resource labels to represent user-provided metadata. Refer to
753      cloud documentation on labels for more details.
754      https://cloud.google.com/compute/docs/labeling-resources
755    memcacheFullVersion: Output only. The full version of memcached server
756      running on this instance. System automatically determines the full
757      memcached version for an instance based on the input MemcacheVersion.
758      The full version format will be "memcached-1.5.16".
759    memcacheNodes: Output only. List of Memcached nodes. Refer to Node message
760      for more details.
761    memcacheVersion: The major version of Memcached software. If not provided,
762      latest supported version will be used. Currently the latest supported
763      major version is `MEMCACHE_1_5`. The minor version will be automatically
764      determined by our system based on the latest supported minor version.
765    name: Required. Unique name of the resource in this scope including
766      project and location using the form:
767      `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
768      Note: Memcached instances are managed and addressed at the regional
769      level so `location_id` here refers to a Google Cloud region; however,
770      users may choose which zones Memcached nodes should be provisioned in
771      within an instance. Refer to zones field for more details.
772    nodeConfig: Required. Configuration for Memcached nodes.
773    nodeCount: Required. Number of nodes in the Memcached instance.
774    parameters: Optional: User defined parameters to apply to the memcached
775      process on each node.
776    state: Output only. The state of this Memcached instance.
777    updateAvailable: Output only. Returns true if there is an update waiting
778      to be applied
779    updateTime: Output only. The time the instance was updated.
780    zones: Zones in which Memcached nodes should be provisioned. Memcached
781      nodes will be equally distributed across these zones. If not provided,
782      the service will by default create nodes in all zones in the region for
783      the instance.
784  """
785
786  class MemcacheVersionValueValuesEnum(_messages.Enum):
787    r"""The major version of Memcached software. If not provided, latest
788    supported version will be used. Currently the latest supported major
789    version is `MEMCACHE_1_5`. The minor version will be automatically
790    determined by our system based on the latest supported minor version.
791
792    Values:
793      MEMCACHE_VERSION_UNSPECIFIED: <no description>
794      MEMCACHE_1_5: Memcached 1.5 version.
795    """
796    MEMCACHE_VERSION_UNSPECIFIED = 0
797    MEMCACHE_1_5 = 1
798
799  class StateValueValuesEnum(_messages.Enum):
800    r"""Output only. The state of this Memcached instance.
801
802    Values:
803      STATE_UNSPECIFIED: State not set.
804      CREATING: Memcached instance is being created.
805      READY: Memcached instance has been created and ready to be used.
806      DELETING: Memcached instance is being deleted.
807      PERFORMING_MAINTENANCE: Memcached instance is going through maintenance,
808        e.g. data plane rollout.
809    """
810    STATE_UNSPECIFIED = 0
811    CREATING = 1
812    READY = 2
813    DELETING = 3
814    PERFORMING_MAINTENANCE = 4
815
816  @encoding.MapUnrecognizedFields('additionalProperties')
817  class LabelsValue(_messages.Message):
818    r"""Resource labels to represent user-provided metadata. Refer to cloud
819    documentation on labels for more details.
820    https://cloud.google.com/compute/docs/labeling-resources
821
822    Messages:
823      AdditionalProperty: An additional property for a LabelsValue object.
824
825    Fields:
826      additionalProperties: Additional properties of type LabelsValue
827    """
828
829    class AdditionalProperty(_messages.Message):
830      r"""An additional property for a LabelsValue object.
831
832      Fields:
833        key: Name of the additional property.
834        value: A string attribute.
835      """
836
837      key = _messages.StringField(1)
838      value = _messages.StringField(2)
839
840    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
841
842  authorizedNetwork = _messages.StringField(1)
843  createTime = _messages.StringField(2)
844  discoveryEndpoint = _messages.StringField(3)
845  displayName = _messages.StringField(4)
846  instanceMessages = _messages.MessageField('InstanceMessage', 5, repeated=True)
847  labels = _messages.MessageField('LabelsValue', 6)
848  memcacheFullVersion = _messages.StringField(7)
849  memcacheNodes = _messages.MessageField('Node', 8, repeated=True)
850  memcacheVersion = _messages.EnumField('MemcacheVersionValueValuesEnum', 9)
851  name = _messages.StringField(10)
852  nodeConfig = _messages.MessageField('NodeConfig', 11)
853  nodeCount = _messages.IntegerField(12, variant=_messages.Variant.INT32)
854  parameters = _messages.MessageField('MemcacheParameters', 13)
855  state = _messages.EnumField('StateValueValuesEnum', 14)
856  updateAvailable = _messages.BooleanField(15)
857  updateTime = _messages.StringField(16)
858  zones = _messages.StringField(17, repeated=True)
859
860
861class InstanceMessage(_messages.Message):
862  r"""A InstanceMessage object.
863
864  Enums:
865    CodeValueValuesEnum: A code that correspond to one type of user-facing
866      message.
867
868  Fields:
869    code: A code that correspond to one type of user-facing message.
870    message: Message on memcached instance which will be exposed to users.
871  """
872
873  class CodeValueValuesEnum(_messages.Enum):
874    r"""A code that correspond to one type of user-facing message.
875
876    Values:
877      CODE_UNSPECIFIED: Message Code not set.
878      ZONE_DISTRIBUTION_UNBALANCED: Memcached nodes are distributed unevenly.
879    """
880    CODE_UNSPECIFIED = 0
881    ZONE_DISTRIBUTION_UNBALANCED = 1
882
883  code = _messages.EnumField('CodeValueValuesEnum', 1)
884  message = _messages.StringField(2)
885
886
887class ListInstancesResponse(_messages.Message):
888  r"""Response for ListInstances.
889
890  Fields:
891    nextPageToken: Token to retrieve the next page of results, or empty if
892      there are no more results in the list.
893    resources: A list of Memcached instances in the project in the specified
894      location, or across all locations. If the `location_id` in the parent
895      field of the request is "-", all regions available to the project are
896      queried, and the results aggregated.
897    unreachable: Locations that could not be reached.
898  """
899
900  nextPageToken = _messages.StringField(1)
901  resources = _messages.MessageField('Instance', 2, repeated=True)
902  unreachable = _messages.StringField(3, repeated=True)
903
904
905class ListLocationsResponse(_messages.Message):
906  r"""The response message for Locations.ListLocations.
907
908  Fields:
909    locations: A list of locations that matches the specified filter in the
910      request.
911    nextPageToken: The standard List next-page token.
912  """
913
914  locations = _messages.MessageField('Location', 1, repeated=True)
915  nextPageToken = _messages.StringField(2)
916
917
918class ListOperationsResponse(_messages.Message):
919  r"""The response message for Operations.ListOperations.
920
921  Fields:
922    nextPageToken: The standard List next-page token.
923    operations: A list of operations that matches the specified filter in the
924      request.
925  """
926
927  nextPageToken = _messages.StringField(1)
928  operations = _messages.MessageField('Operation', 2, repeated=True)
929
930
931class Location(_messages.Message):
932  r"""A resource that represents Google Cloud Platform location.
933
934  Messages:
935    LabelsValue: Cross-service attributes for the location. For example
936      {"cloud.googleapis.com/region": "us-east1"}
937    MetadataValue: Service-specific metadata. For example the available
938      capacity at the given location.
939
940  Fields:
941    displayName: The friendly name for this location, typically a nearby city
942      name. For example, "Tokyo".
943    labels: Cross-service attributes for the location. For example
944      {"cloud.googleapis.com/region": "us-east1"}
945    locationId: The canonical id for this location. For example: `"us-east1"`.
946    metadata: Service-specific metadata. For example the available capacity at
947      the given location.
948    name: Resource name for the location, which may vary between
949      implementations. For example: `"projects/example-project/locations/us-
950      east1"`
951  """
952
953  @encoding.MapUnrecognizedFields('additionalProperties')
954  class LabelsValue(_messages.Message):
955    r"""Cross-service attributes for the location. For example
956    {"cloud.googleapis.com/region": "us-east1"}
957
958    Messages:
959      AdditionalProperty: An additional property for a LabelsValue object.
960
961    Fields:
962      additionalProperties: Additional properties of type LabelsValue
963    """
964
965    class AdditionalProperty(_messages.Message):
966      r"""An additional property for a LabelsValue object.
967
968      Fields:
969        key: Name of the additional property.
970        value: A string attribute.
971      """
972
973      key = _messages.StringField(1)
974      value = _messages.StringField(2)
975
976    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
977
978  @encoding.MapUnrecognizedFields('additionalProperties')
979  class MetadataValue(_messages.Message):
980    r"""Service-specific metadata. For example the available capacity at the
981    given location.
982
983    Messages:
984      AdditionalProperty: An additional property for a MetadataValue object.
985
986    Fields:
987      additionalProperties: Properties of the object. Contains field @type
988        with type URL.
989    """
990
991    class AdditionalProperty(_messages.Message):
992      r"""An additional property for a MetadataValue object.
993
994      Fields:
995        key: Name of the additional property.
996        value: A extra_types.JsonValue attribute.
997      """
998
999      key = _messages.StringField(1)
1000      value = _messages.MessageField('extra_types.JsonValue', 2)
1001
1002    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
1003
1004  displayName = _messages.StringField(1)
1005  labels = _messages.MessageField('LabelsValue', 2)
1006  locationId = _messages.StringField(3)
1007  metadata = _messages.MessageField('MetadataValue', 4)
1008  name = _messages.StringField(5)
1009
1010
1011class MaintenancePolicy(_messages.Message):
1012  r"""Defines policies to service maintenance events.
1013
1014  Enums:
1015    StateValueValuesEnum: Optional. The state of the policy.
1016
1017  Messages:
1018    LabelsValue: Optional. Resource labels to represent user provided
1019      metadata. Each label is a key-value pair, where both the key and the
1020      value are arbitrary strings provided by the user.
1021
1022  Fields:
1023    createTime: Output only. The time when the resource was created.
1024    description: Optional. Description of what this policy is for.
1025      Create/Update methods return INVALID_ARGUMENT if the length is greater
1026      than 512.
1027    labels: Optional. Resource labels to represent user provided metadata.
1028      Each label is a key-value pair, where both the key and the value are
1029      arbitrary strings provided by the user.
1030    name: Required. MaintenancePolicy name using the form: `projects/{project_
1031      id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}`
1032      where {project_id} refers to a GCP consumer project ID, {location_id}
1033      refers to a GCP region/zone, {maintenance_policy_id} must be 1-63
1034      characters long and match the regular expression
1035      `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.
1036    state: Optional. The state of the policy.
1037    updatePolicy: Maintenance policy applicable to instance update.
1038    updateTime: Output only. The time when the resource was updated.
1039  """
1040
1041  class StateValueValuesEnum(_messages.Enum):
1042    r"""Optional. The state of the policy.
1043
1044    Values:
1045      STATE_UNSPECIFIED: Unspecified state.
1046      READY: Resource is ready to be used.
1047      DELETING: Resource is being deleted. It can no longer be attached to
1048        instances.
1049    """
1050    STATE_UNSPECIFIED = 0
1051    READY = 1
1052    DELETING = 2
1053
1054  @encoding.MapUnrecognizedFields('additionalProperties')
1055  class LabelsValue(_messages.Message):
1056    r"""Optional. Resource labels to represent user provided metadata. Each
1057    label is a key-value pair, where both the key and the value are arbitrary
1058    strings provided by the user.
1059
1060    Messages:
1061      AdditionalProperty: An additional property for a LabelsValue object.
1062
1063    Fields:
1064      additionalProperties: Additional properties of type LabelsValue
1065    """
1066
1067    class AdditionalProperty(_messages.Message):
1068      r"""An additional property for a LabelsValue object.
1069
1070      Fields:
1071        key: Name of the additional property.
1072        value: A string attribute.
1073      """
1074
1075      key = _messages.StringField(1)
1076      value = _messages.StringField(2)
1077
1078    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
1079
1080  createTime = _messages.StringField(1)
1081  description = _messages.StringField(2)
1082  labels = _messages.MessageField('LabelsValue', 3)
1083  name = _messages.StringField(4)
1084  state = _messages.EnumField('StateValueValuesEnum', 5)
1085  updatePolicy = _messages.MessageField('UpdatePolicy', 6)
1086  updateTime = _messages.StringField(7)
1087
1088
1089class MaintenanceWindow(_messages.Message):
1090  r"""MaintenanceWindow definition.
1091
1092  Fields:
1093    dailyCycle: Daily cycle.
1094    weeklyCycle: Weekly cycle.
1095  """
1096
1097  dailyCycle = _messages.MessageField('DailyCycle', 1)
1098  weeklyCycle = _messages.MessageField('WeeklyCycle', 2)
1099
1100
1101class MemcacheParameters(_messages.Message):
1102  r"""The unique ID associated with this set of parameters. Users can use this
1103  id to determine if the parameters associated with the instance differ from
1104  the parameters associated with the nodes. A discrepancy between parameter
1105  ids can inform users that they may need to take action to apply parameters
1106  on nodes.
1107
1108  Messages:
1109    ParamsValue: User defined set of parameters to use in the memcached
1110      process.
1111
1112  Fields:
1113    id: Output only.
1114    params: User defined set of parameters to use in the memcached process.
1115  """
1116
1117  @encoding.MapUnrecognizedFields('additionalProperties')
1118  class ParamsValue(_messages.Message):
1119    r"""User defined set of parameters to use in the memcached process.
1120
1121    Messages:
1122      AdditionalProperty: An additional property for a ParamsValue object.
1123
1124    Fields:
1125      additionalProperties: Additional properties of type ParamsValue
1126    """
1127
1128    class AdditionalProperty(_messages.Message):
1129      r"""An additional property for a ParamsValue object.
1130
1131      Fields:
1132        key: Name of the additional property.
1133        value: A string attribute.
1134      """
1135
1136      key = _messages.StringField(1)
1137      value = _messages.StringField(2)
1138
1139    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
1140
1141  id = _messages.StringField(1)
1142  params = _messages.MessageField('ParamsValue', 2)
1143
1144
1145class MemcacheProjectsLocationsGetRequest(_messages.Message):
1146  r"""A MemcacheProjectsLocationsGetRequest object.
1147
1148  Fields:
1149    name: Resource name for the location.
1150  """
1151
1152  name = _messages.StringField(1, required=True)
1153
1154
1155class MemcacheProjectsLocationsInstancesApplyParametersRequest(_messages.Message):
1156  r"""A MemcacheProjectsLocationsInstancesApplyParametersRequest object.
1157
1158  Fields:
1159    applyParametersRequest: A ApplyParametersRequest resource to be passed as
1160      the request body.
1161    name: Required. Resource name of the Memcached instance for which
1162      parameter group updates should be applied.
1163  """
1164
1165  applyParametersRequest = _messages.MessageField('ApplyParametersRequest', 1)
1166  name = _messages.StringField(2, required=True)
1167
1168
1169class MemcacheProjectsLocationsInstancesApplySoftwareUpdateRequest(_messages.Message):
1170  r"""A MemcacheProjectsLocationsInstancesApplySoftwareUpdateRequest object.
1171
1172  Fields:
1173    applySoftwareUpdateRequest: A ApplySoftwareUpdateRequest resource to be
1174      passed as the request body.
1175    instance: Required. Resource name of the Memcached instance for which
1176      software update should be applied.
1177  """
1178
1179  applySoftwareUpdateRequest = _messages.MessageField('ApplySoftwareUpdateRequest', 1)
1180  instance = _messages.StringField(2, required=True)
1181
1182
1183class MemcacheProjectsLocationsInstancesCreateRequest(_messages.Message):
1184  r"""A MemcacheProjectsLocationsInstancesCreateRequest object.
1185
1186  Fields:
1187    instance: A Instance resource to be passed as the request body.
1188    instanceId: Required. The logical name of the Memcached instance in the
1189      user project with the following restrictions: * Must contain only
1190      lowercase letters, numbers, and hyphens. * Must start with a letter. *
1191      Must be between 1-40 characters. * Must end with a number or a letter. *
1192      Must be unique within the user project / location. If any of the above
1193      are not met, the API raises an invalid argument error.
1194    parent: Required. The resource name of the instance location using the
1195      form: `projects/{project_id}/locations/{location_id}` where
1196      `location_id` refers to a GCP region
1197  """
1198
1199  instance = _messages.MessageField('Instance', 1)
1200  instanceId = _messages.StringField(2)
1201  parent = _messages.StringField(3, required=True)
1202
1203
1204class MemcacheProjectsLocationsInstancesDeleteRequest(_messages.Message):
1205  r"""A MemcacheProjectsLocationsInstancesDeleteRequest object.
1206
1207  Fields:
1208    name: Required. Memcached instance resource name in the format:
1209      `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
1210      where `location_id` refers to a GCP region
1211  """
1212
1213  name = _messages.StringField(1, required=True)
1214
1215
1216class MemcacheProjectsLocationsInstancesGetRequest(_messages.Message):
1217  r"""A MemcacheProjectsLocationsInstancesGetRequest object.
1218
1219  Fields:
1220    name: Required. Memcached instance resource name in the format:
1221      `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
1222      where `location_id` refers to a GCP region
1223  """
1224
1225  name = _messages.StringField(1, required=True)
1226
1227
1228class MemcacheProjectsLocationsInstancesListRequest(_messages.Message):
1229  r"""A MemcacheProjectsLocationsInstancesListRequest object.
1230
1231  Fields:
1232    filter: List filter. For example, exclude all Memcached instances with
1233      name as my-instance by specifying `"name != my-instance"`.
1234    orderBy: Sort results. Supported values are "name", "name desc" or ""
1235      (unsorted).
1236    pageSize: The maximum number of items to return. If not specified, a
1237      default value of 1000 will be used by the service. Regardless of the
1238      `page_size` value, the response may include a partial list and a caller
1239      should only rely on response's `next_page_token` to determine if there
1240      are more instances left to be queried.
1241    pageToken: The `next_page_token` value returned from a previous List
1242      request, if any.
1243    parent: Required. The resource name of the instance location using the
1244      form: `projects/{project_id}/locations/{location_id}` where
1245      `location_id` refers to a GCP region
1246  """
1247
1248  filter = _messages.StringField(1)
1249  orderBy = _messages.StringField(2)
1250  pageSize = _messages.IntegerField(3, variant=_messages.Variant.INT32)
1251  pageToken = _messages.StringField(4)
1252  parent = _messages.StringField(5, required=True)
1253
1254
1255class MemcacheProjectsLocationsInstancesPatchRequest(_messages.Message):
1256  r"""A MemcacheProjectsLocationsInstancesPatchRequest object.
1257
1258  Fields:
1259    instance: A Instance resource to be passed as the request body.
1260    name: Required. Unique name of the resource in this scope including
1261      project and location using the form:
1262      `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
1263      Note: Memcached instances are managed and addressed at the regional
1264      level so `location_id` here refers to a Google Cloud region; however,
1265      users may choose which zones Memcached nodes should be provisioned in
1266      within an instance. Refer to zones field for more details.
1267    updateMask: Required. Mask of fields to update. * `displayName`
1268  """
1269
1270  instance = _messages.MessageField('Instance', 1)
1271  name = _messages.StringField(2, required=True)
1272  updateMask = _messages.StringField(3)
1273
1274
1275class MemcacheProjectsLocationsInstancesUpdateParametersRequest(_messages.Message):
1276  r"""A MemcacheProjectsLocationsInstancesUpdateParametersRequest object.
1277
1278  Fields:
1279    name: Required. Resource name of the Memcached instance for which the
1280      parameters should be updated.
1281    updateParametersRequest: A UpdateParametersRequest resource to be passed
1282      as the request body.
1283  """
1284
1285  name = _messages.StringField(1, required=True)
1286  updateParametersRequest = _messages.MessageField('UpdateParametersRequest', 2)
1287
1288
1289class MemcacheProjectsLocationsListRequest(_messages.Message):
1290  r"""A MemcacheProjectsLocationsListRequest object.
1291
1292  Fields:
1293    filter: The standard list filter.
1294    name: The resource that owns the locations collection, if applicable.
1295    pageSize: The standard list page size.
1296    pageToken: The standard list page token.
1297  """
1298
1299  filter = _messages.StringField(1)
1300  name = _messages.StringField(2, required=True)
1301  pageSize = _messages.IntegerField(3, variant=_messages.Variant.INT32)
1302  pageToken = _messages.StringField(4)
1303
1304
1305class MemcacheProjectsLocationsOperationsCancelRequest(_messages.Message):
1306  r"""A MemcacheProjectsLocationsOperationsCancelRequest object.
1307
1308  Fields:
1309    cancelOperationRequest: A CancelOperationRequest resource to be passed as
1310      the request body.
1311    name: The name of the operation resource to be cancelled.
1312  """
1313
1314  cancelOperationRequest = _messages.MessageField('CancelOperationRequest', 1)
1315  name = _messages.StringField(2, required=True)
1316
1317
1318class MemcacheProjectsLocationsOperationsDeleteRequest(_messages.Message):
1319  r"""A MemcacheProjectsLocationsOperationsDeleteRequest object.
1320
1321  Fields:
1322    name: The name of the operation resource to be deleted.
1323  """
1324
1325  name = _messages.StringField(1, required=True)
1326
1327
1328class MemcacheProjectsLocationsOperationsGetRequest(_messages.Message):
1329  r"""A MemcacheProjectsLocationsOperationsGetRequest object.
1330
1331  Fields:
1332    name: The name of the operation resource.
1333  """
1334
1335  name = _messages.StringField(1, required=True)
1336
1337
1338class MemcacheProjectsLocationsOperationsListRequest(_messages.Message):
1339  r"""A MemcacheProjectsLocationsOperationsListRequest object.
1340
1341  Fields:
1342    filter: The standard list filter.
1343    name: The name of the operation's parent resource.
1344    pageSize: The standard list page size.
1345    pageToken: The standard list page token.
1346  """
1347
1348  filter = _messages.StringField(1)
1349  name = _messages.StringField(2, required=True)
1350  pageSize = _messages.IntegerField(3, variant=_messages.Variant.INT32)
1351  pageToken = _messages.StringField(4)
1352
1353
1354class Node(_messages.Message):
1355  r"""A Node object.
1356
1357  Enums:
1358    StateValueValuesEnum: Output only. Current state of the Memcached node.
1359
1360  Fields:
1361    host: Output only. Hostname or IP address of the Memcached node used by
1362      the clients to connect to the Memcached server on this node.
1363    nodeId: Output only. Identifier of the Memcached node. The node id does
1364      not include project or location like the Memcached instance name.
1365    parameters: User defined parameters currently applied to the node.
1366    port: Output only. The port number of the Memcached server on this node.
1367    state: Output only. Current state of the Memcached node.
1368    updateAvailable: Output only. Returns true if there is an update waiting
1369      to be applied
1370    zone: Output only. Location (GCP Zone) for the Memcached node.
1371  """
1372
1373  class StateValueValuesEnum(_messages.Enum):
1374    r"""Output only. Current state of the Memcached node.
1375
1376    Values:
1377      STATE_UNSPECIFIED: Node state is not set.
1378      CREATING: Node is being created.
1379      READY: Node has been created and ready to be used.
1380      DELETING: Node is being deleted.
1381      UPDATING: Node is being updated.
1382    """
1383    STATE_UNSPECIFIED = 0
1384    CREATING = 1
1385    READY = 2
1386    DELETING = 3
1387    UPDATING = 4
1388
1389  host = _messages.StringField(1)
1390  nodeId = _messages.StringField(2)
1391  parameters = _messages.MessageField('MemcacheParameters', 3)
1392  port = _messages.IntegerField(4, variant=_messages.Variant.INT32)
1393  state = _messages.EnumField('StateValueValuesEnum', 5)
1394  updateAvailable = _messages.BooleanField(6)
1395  zone = _messages.StringField(7)
1396
1397
1398class NodeConfig(_messages.Message):
1399  r"""Configuration for a Memcached Node.
1400
1401  Fields:
1402    cpuCount: Required. Number of cpus per Memcached node.
1403    memorySizeMb: Required. Memory size in MiB for each Memcached node.
1404  """
1405
1406  cpuCount = _messages.IntegerField(1, variant=_messages.Variant.INT32)
1407  memorySizeMb = _messages.IntegerField(2, variant=_messages.Variant.INT32)
1408
1409
1410class Operation(_messages.Message):
1411  r"""This resource represents a long-running operation that is the result of
1412  a network API call.
1413
1414  Messages:
1415    MetadataValue: Service-specific metadata associated with the operation. It
1416      typically contains progress information and common metadata such as
1417      create time. Some services might not provide such metadata. Any method
1418      that returns a long-running operation should document the metadata type,
1419      if any.
1420    ResponseValue: The normal response of the operation in case of success. If
1421      the original method returns no data on success, such as `Delete`, the
1422      response is `google.protobuf.Empty`. If the original method is standard
1423      `Get`/`Create`/`Update`, the response should be the resource. For other
1424      methods, the response should have the type `XxxResponse`, where `Xxx` is
1425      the original method name. For example, if the original method name is
1426      `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1427
1428  Fields:
1429    done: If the value is `false`, it means the operation is still in
1430      progress. If `true`, the operation is completed, and either `error` or
1431      `response` is available.
1432    error: The error result of the operation in case of failure or
1433      cancellation.
1434    metadata: Service-specific metadata associated with the operation. It
1435      typically contains progress information and common metadata such as
1436      create time. Some services might not provide such metadata. Any method
1437      that returns a long-running operation should document the metadata type,
1438      if any.
1439    name: The server-assigned name, which is only unique within the same
1440      service that originally returns it. If you use the default HTTP mapping,
1441      the `name` should be a resource name ending with
1442      `operations/{unique_id}`.
1443    response: The normal response of the operation in case of success. If the
1444      original method returns no data on success, such as `Delete`, the
1445      response is `google.protobuf.Empty`. If the original method is standard
1446      `Get`/`Create`/`Update`, the response should be the resource. For other
1447      methods, the response should have the type `XxxResponse`, where `Xxx` is
1448      the original method name. For example, if the original method name is
1449      `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1450  """
1451
1452  @encoding.MapUnrecognizedFields('additionalProperties')
1453  class MetadataValue(_messages.Message):
1454    r"""Service-specific metadata associated with the operation. It typically
1455    contains progress information and common metadata such as create time.
1456    Some services might not provide such metadata. Any method that returns a
1457    long-running operation should document the metadata type, if any.
1458
1459    Messages:
1460      AdditionalProperty: An additional property for a MetadataValue object.
1461
1462    Fields:
1463      additionalProperties: Properties of the object. Contains field @type
1464        with type URL.
1465    """
1466
1467    class AdditionalProperty(_messages.Message):
1468      r"""An additional property for a MetadataValue object.
1469
1470      Fields:
1471        key: Name of the additional property.
1472        value: A extra_types.JsonValue attribute.
1473      """
1474
1475      key = _messages.StringField(1)
1476      value = _messages.MessageField('extra_types.JsonValue', 2)
1477
1478    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
1479
1480  @encoding.MapUnrecognizedFields('additionalProperties')
1481  class ResponseValue(_messages.Message):
1482    r"""The normal response of the operation in case of success. If the
1483    original method returns no data on success, such as `Delete`, the response
1484    is `google.protobuf.Empty`. If the original method is standard
1485    `Get`/`Create`/`Update`, the response should be the resource. For other
1486    methods, the response should have the type `XxxResponse`, where `Xxx` is
1487    the original method name. For example, if the original method name is
1488    `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1489
1490    Messages:
1491      AdditionalProperty: An additional property for a ResponseValue object.
1492
1493    Fields:
1494      additionalProperties: Properties of the object. Contains field @type
1495        with type URL.
1496    """
1497
1498    class AdditionalProperty(_messages.Message):
1499      r"""An additional property for a ResponseValue object.
1500
1501      Fields:
1502        key: Name of the additional property.
1503        value: A extra_types.JsonValue attribute.
1504      """
1505
1506      key = _messages.StringField(1)
1507      value = _messages.MessageField('extra_types.JsonValue', 2)
1508
1509    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
1510
1511  done = _messages.BooleanField(1)
1512  error = _messages.MessageField('Status', 2)
1513  metadata = _messages.MessageField('MetadataValue', 3)
1514  name = _messages.StringField(4)
1515  response = _messages.MessageField('ResponseValue', 5)
1516
1517
1518class OperationMetadata(_messages.Message):
1519  r"""Represents the metadata of a long-running operation.
1520
1521  Fields:
1522    apiVersion: Output only. API version used to start the operation.
1523    cancelRequested: Output only. Identifies whether the user has requested
1524      cancellation of the operation. Operations that have successfully been
1525      cancelled have Operation.error value with a google.rpc.Status.code of 1,
1526      corresponding to `Code.CANCELLED`.
1527    createTime: Output only. Time when the operation was created.
1528    endTime: Output only. Time when the operation finished running.
1529    statusDetail: Output only. Human-readable status of the operation, if any.
1530    target: Output only. Server-defined resource path for the target of the
1531      operation.
1532    verb: Output only. Name of the verb executed by the operation.
1533  """
1534
1535  apiVersion = _messages.StringField(1)
1536  cancelRequested = _messages.BooleanField(2)
1537  createTime = _messages.StringField(3)
1538  endTime = _messages.StringField(4)
1539  statusDetail = _messages.StringField(5)
1540  target = _messages.StringField(6)
1541  verb = _messages.StringField(7)
1542
1543
1544class Schedule(_messages.Message):
1545  r"""Configure the schedule.
1546
1547  Enums:
1548    DayValueValuesEnum: Allows to define schedule that runs specified day of
1549      the week.
1550
1551  Fields:
1552    day: Allows to define schedule that runs specified day of the week.
1553    duration: Output only. Duration of the time window, set by service
1554      producer.
1555    startTime: Time within the window to start the operations.
1556  """
1557
1558  class DayValueValuesEnum(_messages.Enum):
1559    r"""Allows to define schedule that runs specified day of the week.
1560
1561    Values:
1562      DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
1563      MONDAY: Monday
1564      TUESDAY: Tuesday
1565      WEDNESDAY: Wednesday
1566      THURSDAY: Thursday
1567      FRIDAY: Friday
1568      SATURDAY: Saturday
1569      SUNDAY: Sunday
1570    """
1571    DAY_OF_WEEK_UNSPECIFIED = 0
1572    MONDAY = 1
1573    TUESDAY = 2
1574    WEDNESDAY = 3
1575    THURSDAY = 4
1576    FRIDAY = 5
1577    SATURDAY = 6
1578    SUNDAY = 7
1579
1580  day = _messages.EnumField('DayValueValuesEnum', 1)
1581  duration = _messages.StringField(2)
1582  startTime = _messages.MessageField('TimeOfDay', 3)
1583
1584
1585class StandardQueryParameters(_messages.Message):
1586  r"""Query parameters accepted by all methods.
1587
1588  Enums:
1589    FXgafvValueValuesEnum: V1 error format.
1590    AltValueValuesEnum: Data format for response.
1591
1592  Fields:
1593    f__xgafv: V1 error format.
1594    access_token: OAuth access token.
1595    alt: Data format for response.
1596    callback: JSONP
1597    fields: Selector specifying which fields to include in a partial response.
1598    key: API key. Your API key identifies your project and provides you with
1599      API access, quota, and reports. Required unless you provide an OAuth 2.0
1600      token.
1601    oauth_token: OAuth 2.0 token for the current user.
1602    prettyPrint: Returns response with indentations and line breaks.
1603    quotaUser: Available to use for quota purposes for server-side
1604      applications. Can be any arbitrary string assigned to a user, but should
1605      not exceed 40 characters.
1606    trace: A tracing token of the form "token:<tokenid>" to include in api
1607      requests.
1608    uploadType: Legacy upload protocol for media (e.g. "media", "multipart").
1609    upload_protocol: Upload protocol for media (e.g. "raw", "multipart").
1610  """
1611
1612  class AltValueValuesEnum(_messages.Enum):
1613    r"""Data format for response.
1614
1615    Values:
1616      json: Responses with Content-Type of application/json
1617      media: Media download with context-dependent Content-Type
1618      proto: Responses with Content-Type of application/x-protobuf
1619    """
1620    json = 0
1621    media = 1
1622    proto = 2
1623
1624  class FXgafvValueValuesEnum(_messages.Enum):
1625    r"""V1 error format.
1626
1627    Values:
1628      _1: v1 error format
1629      _2: v2 error format
1630    """
1631    _1 = 0
1632    _2 = 1
1633
1634  f__xgafv = _messages.EnumField('FXgafvValueValuesEnum', 1)
1635  access_token = _messages.StringField(2)
1636  alt = _messages.EnumField('AltValueValuesEnum', 3, default='json')
1637  callback = _messages.StringField(4)
1638  fields = _messages.StringField(5)
1639  key = _messages.StringField(6)
1640  oauth_token = _messages.StringField(7)
1641  prettyPrint = _messages.BooleanField(8, default=True)
1642  quotaUser = _messages.StringField(9)
1643  trace = _messages.StringField(10)
1644  uploadType = _messages.StringField(11)
1645  upload_protocol = _messages.StringField(12)
1646
1647
1648class Status(_messages.Message):
1649  r"""The `Status` type defines a logical error model that is suitable for
1650  different programming environments, including REST APIs and RPC APIs. It is
1651  used by [gRPC](https://github.com/grpc). Each `Status` message contains
1652  three pieces of data: error code, error message, and error details. You can
1653  find out more about this error model and how to work with it in the [API
1654  Design Guide](https://cloud.google.com/apis/design/errors).
1655
1656  Messages:
1657    DetailsValueListEntry: A DetailsValueListEntry object.
1658
1659  Fields:
1660    code: The status code, which should be an enum value of google.rpc.Code.
1661    details: A list of messages that carry the error details. There is a
1662      common set of message types for APIs to use.
1663    message: A developer-facing error message, which should be in English. Any
1664      user-facing error message should be localized and sent in the
1665      google.rpc.Status.details field, or localized by the client.
1666  """
1667
1668  @encoding.MapUnrecognizedFields('additionalProperties')
1669  class DetailsValueListEntry(_messages.Message):
1670    r"""A DetailsValueListEntry object.
1671
1672    Messages:
1673      AdditionalProperty: An additional property for a DetailsValueListEntry
1674        object.
1675
1676    Fields:
1677      additionalProperties: Properties of the object. Contains field @type
1678        with type URL.
1679    """
1680
1681    class AdditionalProperty(_messages.Message):
1682      r"""An additional property for a DetailsValueListEntry object.
1683
1684      Fields:
1685        key: Name of the additional property.
1686        value: A extra_types.JsonValue attribute.
1687      """
1688
1689      key = _messages.StringField(1)
1690      value = _messages.MessageField('extra_types.JsonValue', 2)
1691
1692    additionalProperties = _messages.MessageField('AdditionalProperty', 1, repeated=True)
1693
1694  code = _messages.IntegerField(1, variant=_messages.Variant.INT32)
1695  details = _messages.MessageField('DetailsValueListEntry', 2, repeated=True)
1696  message = _messages.StringField(3)
1697
1698
1699class TimeOfDay(_messages.Message):
1700  r"""Represents a time of day. The date and time zone are either not
1701  significant or are specified elsewhere. An API may choose to allow leap
1702  seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
1703
1704  Fields:
1705    hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may
1706      choose to allow the value "24:00:00" for scenarios like business closing
1707      time.
1708    minutes: Minutes of hour of day. Must be from 0 to 59.
1709    nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1710    seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An
1711      API may allow the value 60 if it allows leap-seconds.
1712  """
1713
1714  hours = _messages.IntegerField(1, variant=_messages.Variant.INT32)
1715  minutes = _messages.IntegerField(2, variant=_messages.Variant.INT32)
1716  nanos = _messages.IntegerField(3, variant=_messages.Variant.INT32)
1717  seconds = _messages.IntegerField(4, variant=_messages.Variant.INT32)
1718
1719
1720class UpdateParametersRequest(_messages.Message):
1721  r"""Request for UpdateParameters.
1722
1723  Fields:
1724    parameters: The parameters to apply to the instance.
1725    updateMask: Required. Mask of fields to update.
1726  """
1727
1728  parameters = _messages.MessageField('MemcacheParameters', 1)
1729  updateMask = _messages.StringField(2)
1730
1731
1732class UpdatePolicy(_messages.Message):
1733  r"""Maintenance policy applicable to instance updates.
1734
1735  Enums:
1736    ChannelValueValuesEnum: Optional. Relative scheduling channel applied to
1737      resource.
1738
1739  Fields:
1740    channel: Optional. Relative scheduling channel applied to resource.
1741    denyMaintenancePeriods: Deny Maintenance Period that is applied to
1742      resource to indicate when maintenance is forbidden. User can specify
1743      zero or more non-overlapping deny periods. For V1, Maximum number of
1744      deny_maintenance_periods is expected to be one.
1745    window: Optional. Maintenance window that is applied to resources covered
1746      by this policy.
1747  """
1748
1749  class ChannelValueValuesEnum(_messages.Enum):
1750    r"""Optional. Relative scheduling channel applied to resource.
1751
1752    Values:
1753      UPDATE_CHANNEL_UNSPECIFIED: Unspecified channel.
1754      EARLIER: Early channel within a customer project.
1755      LATER: Later channel within a customer project.
1756    """
1757    UPDATE_CHANNEL_UNSPECIFIED = 0
1758    EARLIER = 1
1759    LATER = 2
1760
1761  channel = _messages.EnumField('ChannelValueValuesEnum', 1)
1762  denyMaintenancePeriods = _messages.MessageField('DenyMaintenancePeriod', 2, repeated=True)
1763  window = _messages.MessageField('MaintenanceWindow', 3)
1764
1765
1766class WeeklyCycle(_messages.Message):
1767  r"""Time window specified for weekly operations.
1768
1769  Fields:
1770    schedule: User can specify multiple windows in a week. Minimum of 1
1771      window.
1772  """
1773
1774  schedule = _messages.MessageField('Schedule', 1, repeated=True)
1775
1776
1777class ZoneMetadata(_messages.Message):
1778  r"""A ZoneMetadata object."""
1779
1780
1781encoding.AddCustomJsonFieldMapping(
1782    StandardQueryParameters, 'f__xgafv', '$.xgafv')
1783encoding.AddCustomJsonEnumMapping(
1784    StandardQueryParameters.FXgafvValueValuesEnum, '_1', '1')
1785encoding.AddCustomJsonEnumMapping(
1786    StandardQueryParameters.FXgafvValueValuesEnum, '_2', '2')
1787