google-apis-connectors_v2 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63ab7f9b798134c4ef67e5dba42bc7bb319ae98af93b7bf1889d507b1f12a85f
|
4
|
+
data.tar.gz: '08c691d96181901c1867c3c57a7d20b1d7a77a926a6141f28956b7b022f863a0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aa1d7c31cccdc12a6c2c7d49472ac9bf6ba69088918ed3adcc18bd61a44e09f6c11165dc10225d7cc346b97414291aee8aca258ff2805963017c6c69a4f8edb
|
7
|
+
data.tar.gz: 8dfef7d9985f8810f7c47a08795a52c135017b2a86b7c01b409c4a76bb79381fcec2c06257f19f07427eaf58c97e8c47582199251bb2c6d0feb4ac098b6fa982
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-connectors_v2
|
2
2
|
|
3
|
+
### v0.10.0 (2024-01-23)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.13.0
|
6
|
+
|
7
|
+
### v0.9.0 (2023-12-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231213
|
10
|
+
|
3
11
|
### v0.8.0 (2023-12-10)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231205
|
@@ -155,6 +155,122 @@ module Google
|
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
158
|
+
# Time window specified for daily operations.
|
159
|
+
class DailyCycle
|
160
|
+
include Google::Apis::Core::Hashable
|
161
|
+
|
162
|
+
# Output only. Duration of the time window, set by service producer.
|
163
|
+
# Corresponds to the JSON property `duration`
|
164
|
+
# @return [String]
|
165
|
+
attr_accessor :duration
|
166
|
+
|
167
|
+
# Represents a time of day. The date and time zone are either not significant or
|
168
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
169
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
170
|
+
# Corresponds to the JSON property `startTime`
|
171
|
+
# @return [Google::Apis::ConnectorsV2::TimeOfDay]
|
172
|
+
attr_accessor :start_time
|
173
|
+
|
174
|
+
def initialize(**args)
|
175
|
+
update!(**args)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Update properties of this object
|
179
|
+
def update!(**args)
|
180
|
+
@duration = args[:duration] if args.key?(:duration)
|
181
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
186
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
187
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
188
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
189
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
190
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
191
|
+
# example, a credit card expiration date). Related types: * google.type.
|
192
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
193
|
+
class Date
|
194
|
+
include Google::Apis::Core::Hashable
|
195
|
+
|
196
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
|
197
|
+
# specify a year by itself or a year and month where the day isn't significant.
|
198
|
+
# Corresponds to the JSON property `day`
|
199
|
+
# @return [Fixnum]
|
200
|
+
attr_accessor :day
|
201
|
+
|
202
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
|
203
|
+
# and day.
|
204
|
+
# Corresponds to the JSON property `month`
|
205
|
+
# @return [Fixnum]
|
206
|
+
attr_accessor :month
|
207
|
+
|
208
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
|
209
|
+
# year.
|
210
|
+
# Corresponds to the JSON property `year`
|
211
|
+
# @return [Fixnum]
|
212
|
+
attr_accessor :year
|
213
|
+
|
214
|
+
def initialize(**args)
|
215
|
+
update!(**args)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Update properties of this object
|
219
|
+
def update!(**args)
|
220
|
+
@day = args[:day] if args.key?(:day)
|
221
|
+
@month = args[:month] if args.key?(:month)
|
222
|
+
@year = args[:year] if args.key?(:year)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# DenyMaintenancePeriod definition. Maintenance is forbidden within the deny
|
227
|
+
# period. The start_date must be less than the end_date.
|
228
|
+
class DenyMaintenancePeriod
|
229
|
+
include Google::Apis::Core::Hashable
|
230
|
+
|
231
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
232
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
233
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
234
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
235
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
236
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
237
|
+
# example, a credit card expiration date). Related types: * google.type.
|
238
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
239
|
+
# Corresponds to the JSON property `endDate`
|
240
|
+
# @return [Google::Apis::ConnectorsV2::Date]
|
241
|
+
attr_accessor :end_date
|
242
|
+
|
243
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
244
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
245
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
246
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
247
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
248
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
249
|
+
# example, a credit card expiration date). Related types: * google.type.
|
250
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
251
|
+
# Corresponds to the JSON property `startDate`
|
252
|
+
# @return [Google::Apis::ConnectorsV2::Date]
|
253
|
+
attr_accessor :start_date
|
254
|
+
|
255
|
+
# Represents a time of day. The date and time zone are either not significant or
|
256
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
257
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
258
|
+
# Corresponds to the JSON property `time`
|
259
|
+
# @return [Google::Apis::ConnectorsV2::TimeOfDay]
|
260
|
+
attr_accessor :time
|
261
|
+
|
262
|
+
def initialize(**args)
|
263
|
+
update!(**args)
|
264
|
+
end
|
265
|
+
|
266
|
+
# Update properties of this object
|
267
|
+
def update!(**args)
|
268
|
+
@end_date = args[:end_date] if args.key?(:end_date)
|
269
|
+
@start_date = args[:start_date] if args.key?(:start_date)
|
270
|
+
@time = args[:time] if args.key?(:time)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
158
274
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
159
275
|
# messages in your APIs. A typical example is to use it as the request or the
|
160
276
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -484,6 +600,169 @@ module Google
|
|
484
600
|
end
|
485
601
|
end
|
486
602
|
|
603
|
+
# Instance represents the interface for SLM services to actuate the state of
|
604
|
+
# control plane resources. Example Instance in JSON, where consumer-project-
|
605
|
+
# number=123456, producer-project-id=cloud-sql: ```json Instance: ` "name": "
|
606
|
+
# projects/123456/locations/us-east1/instances/prod-instance", "create_time": ` "
|
607
|
+
# seconds": 1526406431, `, "labels": ` "env": "prod", "foo": "bar" `, "state":
|
608
|
+
# READY, "software_versions": ` "software_update": "cloud-sql-09-28-2018", `, "
|
609
|
+
# maintenance_policy_names": ` "UpdatePolicy": "projects/123456/locations/us-
|
610
|
+
# east1/maintenancePolicies/prod-update-policy", ` "tenant_project_id": "cloud-
|
611
|
+
# sql-test-tenant", "producer_metadata": ` "cloud-sql-tier": "basic", "cloud-sql-
|
612
|
+
# instance-size": "1G", `, "provisioned_resources": [ ` "resource-type": "
|
613
|
+
# compute-instance", "resource-url": "https://www.googleapis.com/compute/v1/
|
614
|
+
# projects/cloud-sql/zones/us-east1-b/instances/vm-1", ` ], "
|
615
|
+
# maintenance_schedules": ` "csa_rollout": ` "start_time": ` "seconds":
|
616
|
+
# 1526406431, `, "end_time": ` "seconds": 1535406431, `, `, "ncsa_rollout": ` "
|
617
|
+
# start_time": ` "seconds": 1526406431, `, "end_time": ` "seconds": 1535406431, `
|
618
|
+
# , ` `, "consumer_defined_name": "my-sql-instance1", ` ``` LINT.IfChange
|
619
|
+
class Instance
|
620
|
+
include Google::Apis::Core::Hashable
|
621
|
+
|
622
|
+
# consumer_defined_name is the name of the instance set by the service consumers.
|
623
|
+
# Generally this is different from the `name` field which reperesents the
|
624
|
+
# system-assigned id of the instance which the service consumers do not
|
625
|
+
# recognize. This is a required field for tenants onboarding to Maintenance
|
626
|
+
# Window notifications (go/slm-rollout-maintenance-policies#prerequisites).
|
627
|
+
# Corresponds to the JSON property `consumerDefinedName`
|
628
|
+
# @return [String]
|
629
|
+
attr_accessor :consumer_defined_name
|
630
|
+
|
631
|
+
# Output only. Timestamp when the resource was created.
|
632
|
+
# Corresponds to the JSON property `createTime`
|
633
|
+
# @return [String]
|
634
|
+
attr_accessor :create_time
|
635
|
+
|
636
|
+
# Optional. The instance_type of this instance of format: projects/`
|
637
|
+
# project_number`/locations/`location_id`/instanceTypes/`instance_type_id`.
|
638
|
+
# Instance Type represents a high-level tier or SKU of the service that this
|
639
|
+
# instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses '
|
640
|
+
# instance_type' along with 'software_versions' to determine whether instance
|
641
|
+
# needs an update or not.
|
642
|
+
# Corresponds to the JSON property `instanceType`
|
643
|
+
# @return [String]
|
644
|
+
attr_accessor :instance_type
|
645
|
+
|
646
|
+
# Optional. Resource labels to represent user provided metadata. Each label is a
|
647
|
+
# key-value pair, where both the key and the value are arbitrary strings
|
648
|
+
# provided by the user.
|
649
|
+
# Corresponds to the JSON property `labels`
|
650
|
+
# @return [Hash<String,String>]
|
651
|
+
attr_accessor :labels
|
652
|
+
|
653
|
+
# Optional. The MaintenancePolicies that have been attached to the instance. The
|
654
|
+
# key must be of the type name of the oneof policy name defined in
|
655
|
+
# MaintenancePolicy, and the referenced policy must define the same policy type.
|
656
|
+
# For details, please refer to go/mr-user-guide. Should not be set if
|
657
|
+
# maintenance_settings.maintenance_policies is set.
|
658
|
+
# Corresponds to the JSON property `maintenancePolicyNames`
|
659
|
+
# @return [Hash<String,String>]
|
660
|
+
attr_accessor :maintenance_policy_names
|
661
|
+
|
662
|
+
# The MaintenanceSchedule contains the scheduling information of published
|
663
|
+
# maintenance schedule with same key as software_versions.
|
664
|
+
# Corresponds to the JSON property `maintenanceSchedules`
|
665
|
+
# @return [Hash<String,Google::Apis::ConnectorsV2::MaintenanceSchedule>]
|
666
|
+
attr_accessor :maintenance_schedules
|
667
|
+
|
668
|
+
# Maintenance settings associated with instance. Allows service producers and
|
669
|
+
# end users to assign settings that controls maintenance on this instance.
|
670
|
+
# Corresponds to the JSON property `maintenanceSettings`
|
671
|
+
# @return [Google::Apis::ConnectorsV2::MaintenanceSettings]
|
672
|
+
attr_accessor :maintenance_settings
|
673
|
+
|
674
|
+
# Unique name of the resource. It uses the form: `projects/`project_number`/
|
675
|
+
# locations/`location_id`/instances/`instance_id`` Note: This name is passed,
|
676
|
+
# stored and logged across the rollout system. So use of consumer project_id or
|
677
|
+
# any other consumer PII in the name is strongly discouraged for wipeout (go/
|
678
|
+
# wipeout) compliance. See go/elysium/project_ids#storage-guidance for more
|
679
|
+
# details.
|
680
|
+
# Corresponds to the JSON property `name`
|
681
|
+
# @return [String]
|
682
|
+
attr_accessor :name
|
683
|
+
|
684
|
+
# Optional. notification_parameter are information that service producers may
|
685
|
+
# like to include that is not relevant to Rollout. This parameter will only be
|
686
|
+
# passed to Gamma and Cloud Logging for notification/logging purpose.
|
687
|
+
# Corresponds to the JSON property `notificationParameters`
|
688
|
+
# @return [Hash<String,Google::Apis::ConnectorsV2::NotificationParameter>]
|
689
|
+
attr_accessor :notification_parameters
|
690
|
+
|
691
|
+
# Output only. Custom string attributes used primarily to expose producer-
|
692
|
+
# specific information in monitoring dashboards. See go/get-instance-metadata.
|
693
|
+
# Corresponds to the JSON property `producerMetadata`
|
694
|
+
# @return [Hash<String,String>]
|
695
|
+
attr_accessor :producer_metadata
|
696
|
+
|
697
|
+
# Output only. The list of data plane resources provisioned for this instance, e.
|
698
|
+
# g. compute VMs. See go/get-instance-metadata.
|
699
|
+
# Corresponds to the JSON property `provisionedResources`
|
700
|
+
# @return [Array<Google::Apis::ConnectorsV2::ProvisionedResource>]
|
701
|
+
attr_accessor :provisioned_resources
|
702
|
+
|
703
|
+
# Link to the SLM instance template. Only populated when updating SLM instances
|
704
|
+
# via SSA's Actuation service adaptor. Service producers with custom control
|
705
|
+
# plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they
|
706
|
+
# should use software_versions.
|
707
|
+
# Corresponds to the JSON property `slmInstanceTemplate`
|
708
|
+
# @return [String]
|
709
|
+
attr_accessor :slm_instance_template
|
710
|
+
|
711
|
+
# SloMetadata contains resources required for proper SLO classification of the
|
712
|
+
# instance.
|
713
|
+
# Corresponds to the JSON property `sloMetadata`
|
714
|
+
# @return [Google::Apis::ConnectorsV2::SloMetadata]
|
715
|
+
attr_accessor :slo_metadata
|
716
|
+
|
717
|
+
# Software versions that are used to deploy this instance. This can be mutated
|
718
|
+
# by rollout services.
|
719
|
+
# Corresponds to the JSON property `softwareVersions`
|
720
|
+
# @return [Hash<String,String>]
|
721
|
+
attr_accessor :software_versions
|
722
|
+
|
723
|
+
# Output only. Current lifecycle state of the resource (e.g. if it's being
|
724
|
+
# created or ready to use).
|
725
|
+
# Corresponds to the JSON property `state`
|
726
|
+
# @return [String]
|
727
|
+
attr_accessor :state
|
728
|
+
|
729
|
+
# Output only. ID of the associated GCP tenant project. See go/get-instance-
|
730
|
+
# metadata.
|
731
|
+
# Corresponds to the JSON property `tenantProjectId`
|
732
|
+
# @return [String]
|
733
|
+
attr_accessor :tenant_project_id
|
734
|
+
|
735
|
+
# Output only. Timestamp when the resource was last modified.
|
736
|
+
# Corresponds to the JSON property `updateTime`
|
737
|
+
# @return [String]
|
738
|
+
attr_accessor :update_time
|
739
|
+
|
740
|
+
def initialize(**args)
|
741
|
+
update!(**args)
|
742
|
+
end
|
743
|
+
|
744
|
+
# Update properties of this object
|
745
|
+
def update!(**args)
|
746
|
+
@consumer_defined_name = args[:consumer_defined_name] if args.key?(:consumer_defined_name)
|
747
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
748
|
+
@instance_type = args[:instance_type] if args.key?(:instance_type)
|
749
|
+
@labels = args[:labels] if args.key?(:labels)
|
750
|
+
@maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names)
|
751
|
+
@maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules)
|
752
|
+
@maintenance_settings = args[:maintenance_settings] if args.key?(:maintenance_settings)
|
753
|
+
@name = args[:name] if args.key?(:name)
|
754
|
+
@notification_parameters = args[:notification_parameters] if args.key?(:notification_parameters)
|
755
|
+
@producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
|
756
|
+
@provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
|
757
|
+
@slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template)
|
758
|
+
@slo_metadata = args[:slo_metadata] if args.key?(:slo_metadata)
|
759
|
+
@software_versions = args[:software_versions] if args.key?(:software_versions)
|
760
|
+
@state = args[:state] if args.key?(:state)
|
761
|
+
@tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id)
|
762
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
487
766
|
# JsonSchema representation of schema metadata
|
488
767
|
class JsonSchema
|
489
768
|
include Google::Apis::Core::Hashable
|
@@ -651,6 +930,298 @@ module Google
|
|
651
930
|
end
|
652
931
|
end
|
653
932
|
|
933
|
+
# LINT.IfChange Defines policies to service maintenance events.
|
934
|
+
class MaintenancePolicy
|
935
|
+
include Google::Apis::Core::Hashable
|
936
|
+
|
937
|
+
# Output only. The time when the resource was created.
|
938
|
+
# Corresponds to the JSON property `createTime`
|
939
|
+
# @return [String]
|
940
|
+
attr_accessor :create_time
|
941
|
+
|
942
|
+
# Optional. Description of what this policy is for. Create/Update methods return
|
943
|
+
# INVALID_ARGUMENT if the length is greater than 512.
|
944
|
+
# Corresponds to the JSON property `description`
|
945
|
+
# @return [String]
|
946
|
+
attr_accessor :description
|
947
|
+
|
948
|
+
# Optional. Resource labels to represent user provided metadata. Each label is a
|
949
|
+
# key-value pair, where both the key and the value are arbitrary strings
|
950
|
+
# provided by the user.
|
951
|
+
# Corresponds to the JSON property `labels`
|
952
|
+
# @return [Hash<String,String>]
|
953
|
+
attr_accessor :labels
|
954
|
+
|
955
|
+
# Required. MaintenancePolicy name using the form: `projects/`project_id`/
|
956
|
+
# locations/`location_id`/maintenancePolicies/`maintenance_policy_id`` where `
|
957
|
+
# project_id` refers to a GCP consumer project ID, `location_id` refers to a GCP
|
958
|
+
# region/zone, `maintenance_policy_id` must be 1-63 characters long and match
|
959
|
+
# the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.
|
960
|
+
# Corresponds to the JSON property `name`
|
961
|
+
# @return [String]
|
962
|
+
attr_accessor :name
|
963
|
+
|
964
|
+
# Optional. The state of the policy.
|
965
|
+
# Corresponds to the JSON property `state`
|
966
|
+
# @return [String]
|
967
|
+
attr_accessor :state
|
968
|
+
|
969
|
+
# Maintenance policy applicable to instance updates.
|
970
|
+
# Corresponds to the JSON property `updatePolicy`
|
971
|
+
# @return [Google::Apis::ConnectorsV2::UpdatePolicy]
|
972
|
+
attr_accessor :update_policy
|
973
|
+
|
974
|
+
# Output only. The time when the resource was updated.
|
975
|
+
# Corresponds to the JSON property `updateTime`
|
976
|
+
# @return [String]
|
977
|
+
attr_accessor :update_time
|
978
|
+
|
979
|
+
def initialize(**args)
|
980
|
+
update!(**args)
|
981
|
+
end
|
982
|
+
|
983
|
+
# Update properties of this object
|
984
|
+
def update!(**args)
|
985
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
986
|
+
@description = args[:description] if args.key?(:description)
|
987
|
+
@labels = args[:labels] if args.key?(:labels)
|
988
|
+
@name = args[:name] if args.key?(:name)
|
989
|
+
@state = args[:state] if args.key?(:state)
|
990
|
+
@update_policy = args[:update_policy] if args.key?(:update_policy)
|
991
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
992
|
+
end
|
993
|
+
end
|
994
|
+
|
995
|
+
# Maintenance schedule which is exposed to customer and potentially end user,
|
996
|
+
# indicating published upcoming future maintenance schedule
|
997
|
+
class MaintenanceSchedule
|
998
|
+
include Google::Apis::Core::Hashable
|
999
|
+
|
1000
|
+
# This field is deprecated, and will be always set to true since reschedule can
|
1001
|
+
# happen multiple times now. This field should not be removed until all service
|
1002
|
+
# producers remove this for their customers.
|
1003
|
+
# Corresponds to the JSON property `canReschedule`
|
1004
|
+
# @return [Boolean]
|
1005
|
+
attr_accessor :can_reschedule
|
1006
|
+
alias_method :can_reschedule?, :can_reschedule
|
1007
|
+
|
1008
|
+
# The scheduled end time for the maintenance.
|
1009
|
+
# Corresponds to the JSON property `endTime`
|
1010
|
+
# @return [String]
|
1011
|
+
attr_accessor :end_time
|
1012
|
+
|
1013
|
+
# The rollout management policy this maintenance schedule is associated with.
|
1014
|
+
# When doing reschedule update request, the reschedule should be against this
|
1015
|
+
# given policy.
|
1016
|
+
# Corresponds to the JSON property `rolloutManagementPolicy`
|
1017
|
+
# @return [String]
|
1018
|
+
attr_accessor :rollout_management_policy
|
1019
|
+
|
1020
|
+
# schedule_deadline_time is the time deadline any schedule start time cannot go
|
1021
|
+
# beyond, including reschedule. It's normally the initial schedule start time
|
1022
|
+
# plus maintenance window length (1 day or 1 week). Maintenance cannot be
|
1023
|
+
# scheduled to start beyond this deadline.
|
1024
|
+
# Corresponds to the JSON property `scheduleDeadlineTime`
|
1025
|
+
# @return [String]
|
1026
|
+
attr_accessor :schedule_deadline_time
|
1027
|
+
|
1028
|
+
# The scheduled start time for the maintenance.
|
1029
|
+
# Corresponds to the JSON property `startTime`
|
1030
|
+
# @return [String]
|
1031
|
+
attr_accessor :start_time
|
1032
|
+
|
1033
|
+
def initialize(**args)
|
1034
|
+
update!(**args)
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
# Update properties of this object
|
1038
|
+
def update!(**args)
|
1039
|
+
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
1040
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1041
|
+
@rollout_management_policy = args[:rollout_management_policy] if args.key?(:rollout_management_policy)
|
1042
|
+
@schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
|
1043
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1044
|
+
end
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# Maintenance settings associated with instance. Allows service producers and
|
1048
|
+
# end users to assign settings that controls maintenance on this instance.
|
1049
|
+
class MaintenanceSettings
|
1050
|
+
include Google::Apis::Core::Hashable
|
1051
|
+
|
1052
|
+
# Optional. Exclude instance from maintenance. When true, rollout service will
|
1053
|
+
# not attempt maintenance on the instance. Rollout service will include the
|
1054
|
+
# instance in reported rollout progress as not attempted.
|
1055
|
+
# Corresponds to the JSON property `exclude`
|
1056
|
+
# @return [Boolean]
|
1057
|
+
attr_accessor :exclude
|
1058
|
+
alias_method :exclude?, :exclude
|
1059
|
+
|
1060
|
+
# Optional. If the update call is triggered from rollback, set the value as true.
|
1061
|
+
# Corresponds to the JSON property `isRollback`
|
1062
|
+
# @return [Boolean]
|
1063
|
+
attr_accessor :is_rollback
|
1064
|
+
alias_method :is_rollback?, :is_rollback
|
1065
|
+
|
1066
|
+
# Optional. The MaintenancePolicies that have been attached to the instance. The
|
1067
|
+
# key must be of the type name of the oneof policy name defined in
|
1068
|
+
# MaintenancePolicy, and the embedded policy must define the same policy type.
|
1069
|
+
# For details, please refer to go/mr-user-guide. Should not be set if
|
1070
|
+
# maintenance_policy_names is set. If only the name is needed, then only
|
1071
|
+
# populate MaintenancePolicy.name.
|
1072
|
+
# Corresponds to the JSON property `maintenancePolicies`
|
1073
|
+
# @return [Hash<String,Google::Apis::ConnectorsV2::MaintenancePolicy>]
|
1074
|
+
attr_accessor :maintenance_policies
|
1075
|
+
|
1076
|
+
def initialize(**args)
|
1077
|
+
update!(**args)
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
# Update properties of this object
|
1081
|
+
def update!(**args)
|
1082
|
+
@exclude = args[:exclude] if args.key?(:exclude)
|
1083
|
+
@is_rollback = args[:is_rollback] if args.key?(:is_rollback)
|
1084
|
+
@maintenance_policies = args[:maintenance_policies] if args.key?(:maintenance_policies)
|
1085
|
+
end
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# MaintenanceWindow definition.
|
1089
|
+
class MaintenanceWindow
|
1090
|
+
include Google::Apis::Core::Hashable
|
1091
|
+
|
1092
|
+
# Time window specified for daily operations.
|
1093
|
+
# Corresponds to the JSON property `dailyCycle`
|
1094
|
+
# @return [Google::Apis::ConnectorsV2::DailyCycle]
|
1095
|
+
attr_accessor :daily_cycle
|
1096
|
+
|
1097
|
+
# Time window specified for weekly operations.
|
1098
|
+
# Corresponds to the JSON property `weeklyCycle`
|
1099
|
+
# @return [Google::Apis::ConnectorsV2::WeeklyCycle]
|
1100
|
+
attr_accessor :weekly_cycle
|
1101
|
+
|
1102
|
+
def initialize(**args)
|
1103
|
+
update!(**args)
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# Update properties of this object
|
1107
|
+
def update!(**args)
|
1108
|
+
@daily_cycle = args[:daily_cycle] if args.key?(:daily_cycle)
|
1109
|
+
@weekly_cycle = args[:weekly_cycle] if args.key?(:weekly_cycle)
|
1110
|
+
end
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# Node information for custom per-node SLO implementations. SSA does not support
|
1114
|
+
# per-node SLO, but producers can populate per-node information in SloMetadata
|
1115
|
+
# for custom precomputations. SSA Eligibility Exporter will emit per-node metric
|
1116
|
+
# based on this information.
|
1117
|
+
class NodeSloMetadata
|
1118
|
+
include Google::Apis::Core::Hashable
|
1119
|
+
|
1120
|
+
# The location of the node, if different from instance location.
|
1121
|
+
# Corresponds to the JSON property `location`
|
1122
|
+
# @return [String]
|
1123
|
+
attr_accessor :location
|
1124
|
+
|
1125
|
+
# The id of the node. This should be equal to SaasInstanceNode.node_id.
|
1126
|
+
# Corresponds to the JSON property `nodeId`
|
1127
|
+
# @return [String]
|
1128
|
+
attr_accessor :node_id
|
1129
|
+
|
1130
|
+
# PerSliSloEligibility is a mapping from an SLI name to eligibility.
|
1131
|
+
# Corresponds to the JSON property `perSliEligibility`
|
1132
|
+
# @return [Google::Apis::ConnectorsV2::PerSliSloEligibility]
|
1133
|
+
attr_accessor :per_sli_eligibility
|
1134
|
+
|
1135
|
+
def initialize(**args)
|
1136
|
+
update!(**args)
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
# Update properties of this object
|
1140
|
+
def update!(**args)
|
1141
|
+
@location = args[:location] if args.key?(:location)
|
1142
|
+
@node_id = args[:node_id] if args.key?(:node_id)
|
1143
|
+
@per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
|
1144
|
+
end
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
# Contains notification related data.
|
1148
|
+
class NotificationParameter
|
1149
|
+
include Google::Apis::Core::Hashable
|
1150
|
+
|
1151
|
+
# Optional. Array of string values. e.g. instance's replica information.
|
1152
|
+
# Corresponds to the JSON property `values`
|
1153
|
+
# @return [Array<String>]
|
1154
|
+
attr_accessor :values
|
1155
|
+
|
1156
|
+
def initialize(**args)
|
1157
|
+
update!(**args)
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
# Update properties of this object
|
1161
|
+
def update!(**args)
|
1162
|
+
@values = args[:values] if args.key?(:values)
|
1163
|
+
end
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# PerSliSloEligibility is a mapping from an SLI name to eligibility.
|
1167
|
+
class PerSliSloEligibility
|
1168
|
+
include Google::Apis::Core::Hashable
|
1169
|
+
|
1170
|
+
# An entry in the eligibilities map specifies an eligibility for a particular
|
1171
|
+
# SLI for the given instance. The SLI key in the name must be a valid SLI name
|
1172
|
+
# specified in the Eligibility Exporter binary flags otherwise an error will be
|
1173
|
+
# emitted by Eligibility Exporter and the oncaller will be alerted. If an SLI
|
1174
|
+
# has been defined in the binary flags but the eligibilities map does not
|
1175
|
+
# contain it, the corresponding SLI time series will not be emitted by the
|
1176
|
+
# Eligibility Exporter. This ensures a smooth rollout and compatibility between
|
1177
|
+
# the data produced by different versions of the Eligibility Exporters. If
|
1178
|
+
# eligibilities map contains a key for an SLI which has not been declared in the
|
1179
|
+
# binary flags, there will be an error message emitted in the Eligibility
|
1180
|
+
# Exporter log and the metric for the SLI in question will not be emitted.
|
1181
|
+
# Corresponds to the JSON property `eligibilities`
|
1182
|
+
# @return [Hash<String,Google::Apis::ConnectorsV2::SloEligibility>]
|
1183
|
+
attr_accessor :eligibilities
|
1184
|
+
|
1185
|
+
def initialize(**args)
|
1186
|
+
update!(**args)
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# Update properties of this object
|
1190
|
+
def update!(**args)
|
1191
|
+
@eligibilities = args[:eligibilities] if args.key?(:eligibilities)
|
1192
|
+
end
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# Describes provisioned dataplane resources.
|
1196
|
+
class ProvisionedResource
|
1197
|
+
include Google::Apis::Core::Hashable
|
1198
|
+
|
1199
|
+
# Type of the resource. This can be either a GCP resource or a custom one (e.g.
|
1200
|
+
# another cloud provider's VM). For GCP compute resources use singular form of
|
1201
|
+
# the names listed in GCP compute API documentation (https://cloud.google.com/
|
1202
|
+
# compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: '
|
1203
|
+
# compute-instance', 'compute-disk', 'compute-autoscaler'.
|
1204
|
+
# Corresponds to the JSON property `resourceType`
|
1205
|
+
# @return [String]
|
1206
|
+
attr_accessor :resource_type
|
1207
|
+
|
1208
|
+
# URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/
|
1209
|
+
# projects/...)".
|
1210
|
+
# Corresponds to the JSON property `resourceUrl`
|
1211
|
+
# @return [String]
|
1212
|
+
attr_accessor :resource_url
|
1213
|
+
|
1214
|
+
def initialize(**args)
|
1215
|
+
update!(**args)
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
# Update properties of this object
|
1219
|
+
def update!(**args)
|
1220
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
1221
|
+
@resource_url = args[:resource_url] if args.key?(:resource_url)
|
1222
|
+
end
|
1223
|
+
end
|
1224
|
+
|
654
1225
|
# A wrapper around the SQL query statement. This is needed so that the JSON
|
655
1226
|
# representation of ExecuteSqlQueryRequest has the following format: ``"query":"
|
656
1227
|
# select *"``.
|
@@ -814,6 +1385,146 @@ module Google
|
|
814
1385
|
end
|
815
1386
|
end
|
816
1387
|
|
1388
|
+
# Configure the schedule.
|
1389
|
+
class Schedule
|
1390
|
+
include Google::Apis::Core::Hashable
|
1391
|
+
|
1392
|
+
# Allows to define schedule that runs specified day of the week.
|
1393
|
+
# Corresponds to the JSON property `day`
|
1394
|
+
# @return [String]
|
1395
|
+
attr_accessor :day
|
1396
|
+
|
1397
|
+
# Output only. Duration of the time window, set by service producer.
|
1398
|
+
# Corresponds to the JSON property `duration`
|
1399
|
+
# @return [String]
|
1400
|
+
attr_accessor :duration
|
1401
|
+
|
1402
|
+
# Represents a time of day. The date and time zone are either not significant or
|
1403
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
1404
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
1405
|
+
# Corresponds to the JSON property `startTime`
|
1406
|
+
# @return [Google::Apis::ConnectorsV2::TimeOfDay]
|
1407
|
+
attr_accessor :start_time
|
1408
|
+
|
1409
|
+
def initialize(**args)
|
1410
|
+
update!(**args)
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
# Update properties of this object
|
1414
|
+
def update!(**args)
|
1415
|
+
@day = args[:day] if args.key?(:day)
|
1416
|
+
@duration = args[:duration] if args.key?(:duration)
|
1417
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1418
|
+
end
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
# SloEligibility is a tuple containing eligibility value: true if an instance is
|
1422
|
+
# eligible for SLO calculation or false if it should be excluded from all SLO-
|
1423
|
+
# related calculations along with a user-defined reason.
|
1424
|
+
class SloEligibility
|
1425
|
+
include Google::Apis::Core::Hashable
|
1426
|
+
|
1427
|
+
# Whether an instance is eligible or ineligible.
|
1428
|
+
# Corresponds to the JSON property `eligible`
|
1429
|
+
# @return [Boolean]
|
1430
|
+
attr_accessor :eligible
|
1431
|
+
alias_method :eligible?, :eligible
|
1432
|
+
|
1433
|
+
# User-defined reason for the current value of instance eligibility. Usually,
|
1434
|
+
# this can be directly mapped to the internal state. An empty reason is allowed.
|
1435
|
+
# Corresponds to the JSON property `reason`
|
1436
|
+
# @return [String]
|
1437
|
+
attr_accessor :reason
|
1438
|
+
|
1439
|
+
def initialize(**args)
|
1440
|
+
update!(**args)
|
1441
|
+
end
|
1442
|
+
|
1443
|
+
# Update properties of this object
|
1444
|
+
def update!(**args)
|
1445
|
+
@eligible = args[:eligible] if args.key?(:eligible)
|
1446
|
+
@reason = args[:reason] if args.key?(:reason)
|
1447
|
+
end
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# SloMetadata contains resources required for proper SLO classification of the
|
1451
|
+
# instance.
|
1452
|
+
class SloMetadata
|
1453
|
+
include Google::Apis::Core::Hashable
|
1454
|
+
|
1455
|
+
# Optional. List of nodes. Some producers need to use per-node metadata to
|
1456
|
+
# calculate SLO. This field allows such producers to publish per-node SLO meta
|
1457
|
+
# data, which will be consumed by SSA Eligibility Exporter and published in the
|
1458
|
+
# form of per node metric to Monarch.
|
1459
|
+
# Corresponds to the JSON property `nodes`
|
1460
|
+
# @return [Array<Google::Apis::ConnectorsV2::NodeSloMetadata>]
|
1461
|
+
attr_accessor :nodes
|
1462
|
+
|
1463
|
+
# PerSliSloEligibility is a mapping from an SLI name to eligibility.
|
1464
|
+
# Corresponds to the JSON property `perSliEligibility`
|
1465
|
+
# @return [Google::Apis::ConnectorsV2::PerSliSloEligibility]
|
1466
|
+
attr_accessor :per_sli_eligibility
|
1467
|
+
|
1468
|
+
# Name of the SLO tier the Instance belongs to. This name will be expected to
|
1469
|
+
# match the tiers specified in the service SLO configuration. Field is mandatory
|
1470
|
+
# and must not be empty.
|
1471
|
+
# Corresponds to the JSON property `tier`
|
1472
|
+
# @return [String]
|
1473
|
+
attr_accessor :tier
|
1474
|
+
|
1475
|
+
def initialize(**args)
|
1476
|
+
update!(**args)
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
# Update properties of this object
|
1480
|
+
def update!(**args)
|
1481
|
+
@nodes = args[:nodes] if args.key?(:nodes)
|
1482
|
+
@per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
|
1483
|
+
@tier = args[:tier] if args.key?(:tier)
|
1484
|
+
end
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# Represents a time of day. The date and time zone are either not significant or
|
1488
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
1489
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
1490
|
+
class TimeOfDay
|
1491
|
+
include Google::Apis::Core::Hashable
|
1492
|
+
|
1493
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
|
1494
|
+
# allow the value "24:00:00" for scenarios like business closing time.
|
1495
|
+
# Corresponds to the JSON property `hours`
|
1496
|
+
# @return [Fixnum]
|
1497
|
+
attr_accessor :hours
|
1498
|
+
|
1499
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
1500
|
+
# Corresponds to the JSON property `minutes`
|
1501
|
+
# @return [Fixnum]
|
1502
|
+
attr_accessor :minutes
|
1503
|
+
|
1504
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
1505
|
+
# Corresponds to the JSON property `nanos`
|
1506
|
+
# @return [Fixnum]
|
1507
|
+
attr_accessor :nanos
|
1508
|
+
|
1509
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
1510
|
+
# allow the value 60 if it allows leap-seconds.
|
1511
|
+
# Corresponds to the JSON property `seconds`
|
1512
|
+
# @return [Fixnum]
|
1513
|
+
attr_accessor :seconds
|
1514
|
+
|
1515
|
+
def initialize(**args)
|
1516
|
+
update!(**args)
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# Update properties of this object
|
1520
|
+
def update!(**args)
|
1521
|
+
@hours = args[:hours] if args.key?(:hours)
|
1522
|
+
@minutes = args[:minutes] if args.key?(:minutes)
|
1523
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
1524
|
+
@seconds = args[:seconds] if args.key?(:seconds)
|
1525
|
+
end
|
1526
|
+
end
|
1527
|
+
|
817
1528
|
# Response message for EntityService.UpdateEntitiesWithConditions
|
818
1529
|
class UpdateEntitiesWithConditionsResponse
|
819
1530
|
include Google::Apis::Core::Hashable
|
@@ -832,6 +1543,58 @@ module Google
|
|
832
1543
|
@response = args[:response] if args.key?(:response)
|
833
1544
|
end
|
834
1545
|
end
|
1546
|
+
|
1547
|
+
# Maintenance policy applicable to instance updates.
|
1548
|
+
class UpdatePolicy
|
1549
|
+
include Google::Apis::Core::Hashable
|
1550
|
+
|
1551
|
+
# Optional. Relative scheduling channel applied to resource.
|
1552
|
+
# Corresponds to the JSON property `channel`
|
1553
|
+
# @return [String]
|
1554
|
+
attr_accessor :channel
|
1555
|
+
|
1556
|
+
# Deny Maintenance Period that is applied to resource to indicate when
|
1557
|
+
# maintenance is forbidden. The protocol supports zero-to-many such periods, but
|
1558
|
+
# the current SLM Rollout implementation only supports zero-to-one.
|
1559
|
+
# Corresponds to the JSON property `denyMaintenancePeriods`
|
1560
|
+
# @return [Array<Google::Apis::ConnectorsV2::DenyMaintenancePeriod>]
|
1561
|
+
attr_accessor :deny_maintenance_periods
|
1562
|
+
|
1563
|
+
# MaintenanceWindow definition.
|
1564
|
+
# Corresponds to the JSON property `window`
|
1565
|
+
# @return [Google::Apis::ConnectorsV2::MaintenanceWindow]
|
1566
|
+
attr_accessor :window
|
1567
|
+
|
1568
|
+
def initialize(**args)
|
1569
|
+
update!(**args)
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
# Update properties of this object
|
1573
|
+
def update!(**args)
|
1574
|
+
@channel = args[:channel] if args.key?(:channel)
|
1575
|
+
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
|
1576
|
+
@window = args[:window] if args.key?(:window)
|
1577
|
+
end
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
# Time window specified for weekly operations.
|
1581
|
+
class WeeklyCycle
|
1582
|
+
include Google::Apis::Core::Hashable
|
1583
|
+
|
1584
|
+
# User can specify multiple windows in a week. Minimum of 1 window.
|
1585
|
+
# Corresponds to the JSON property `schedule`
|
1586
|
+
# @return [Array<Google::Apis::ConnectorsV2::Schedule>]
|
1587
|
+
attr_accessor :schedule
|
1588
|
+
|
1589
|
+
def initialize(**args)
|
1590
|
+
update!(**args)
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
# Update properties of this object
|
1594
|
+
def update!(**args)
|
1595
|
+
@schedule = args[:schedule] if args.key?(:schedule)
|
1596
|
+
end
|
1597
|
+
end
|
835
1598
|
end
|
836
1599
|
end
|
837
1600
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ConnectorsV2
|
18
18
|
# Version of the google-apis-connectors_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231213"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,24 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class DailyCycle
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class Date
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class DenyMaintenancePeriod
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
49
67
|
class Empty
|
50
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
69
|
|
@@ -112,6 +130,12 @@ module Google
|
|
112
130
|
include Google::Apis::Core::JsonObjectSupport
|
113
131
|
end
|
114
132
|
|
133
|
+
class Instance
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
115
139
|
class JsonSchema
|
116
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
141
|
|
@@ -136,6 +160,54 @@ module Google
|
|
136
160
|
include Google::Apis::Core::JsonObjectSupport
|
137
161
|
end
|
138
162
|
|
163
|
+
class MaintenancePolicy
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class MaintenanceSchedule
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class MaintenanceSettings
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class MaintenanceWindow
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class NodeSloMetadata
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class NotificationParameter
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class PerSliSloEligibility
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class ProvisionedResource
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
139
211
|
class Query
|
140
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
213
|
|
@@ -172,12 +244,48 @@ module Google
|
|
172
244
|
include Google::Apis::Core::JsonObjectSupport
|
173
245
|
end
|
174
246
|
|
247
|
+
class Schedule
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class SloEligibility
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class SloMetadata
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
265
|
+
class TimeOfDay
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
175
271
|
class UpdateEntitiesWithConditionsResponse
|
176
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
273
|
|
178
274
|
include Google::Apis::Core::JsonObjectSupport
|
179
275
|
end
|
180
276
|
|
277
|
+
class UpdatePolicy
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
283
|
+
class WeeklyCycle
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
181
289
|
class AccessCredentials
|
182
290
|
# @private
|
183
291
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -219,6 +327,36 @@ module Google
|
|
219
327
|
end
|
220
328
|
end
|
221
329
|
|
330
|
+
class DailyCycle
|
331
|
+
# @private
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
+
property :duration, as: 'duration'
|
334
|
+
property :start_time, as: 'startTime', class: Google::Apis::ConnectorsV2::TimeOfDay, decorator: Google::Apis::ConnectorsV2::TimeOfDay::Representation
|
335
|
+
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
class Date
|
340
|
+
# @private
|
341
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
342
|
+
property :day, as: 'day'
|
343
|
+
property :month, as: 'month'
|
344
|
+
property :year, as: 'year'
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
class DenyMaintenancePeriod
|
349
|
+
# @private
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
351
|
+
property :end_date, as: 'endDate', class: Google::Apis::ConnectorsV2::Date, decorator: Google::Apis::ConnectorsV2::Date::Representation
|
352
|
+
|
353
|
+
property :start_date, as: 'startDate', class: Google::Apis::ConnectorsV2::Date, decorator: Google::Apis::ConnectorsV2::Date::Representation
|
354
|
+
|
355
|
+
property :time, as: 'time', class: Google::Apis::ConnectorsV2::TimeOfDay, decorator: Google::Apis::ConnectorsV2::TimeOfDay::Representation
|
356
|
+
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
222
360
|
class Empty
|
223
361
|
# @private
|
224
362
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -318,6 +456,34 @@ module Google
|
|
318
456
|
end
|
319
457
|
end
|
320
458
|
|
459
|
+
class Instance
|
460
|
+
# @private
|
461
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
462
|
+
property :consumer_defined_name, as: 'consumerDefinedName'
|
463
|
+
property :create_time, as: 'createTime'
|
464
|
+
property :instance_type, as: 'instanceType'
|
465
|
+
hash :labels, as: 'labels'
|
466
|
+
hash :maintenance_policy_names, as: 'maintenancePolicyNames'
|
467
|
+
hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::ConnectorsV2::MaintenanceSchedule, decorator: Google::Apis::ConnectorsV2::MaintenanceSchedule::Representation
|
468
|
+
|
469
|
+
property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::ConnectorsV2::MaintenanceSettings, decorator: Google::Apis::ConnectorsV2::MaintenanceSettings::Representation
|
470
|
+
|
471
|
+
property :name, as: 'name'
|
472
|
+
hash :notification_parameters, as: 'notificationParameters', class: Google::Apis::ConnectorsV2::NotificationParameter, decorator: Google::Apis::ConnectorsV2::NotificationParameter::Representation
|
473
|
+
|
474
|
+
hash :producer_metadata, as: 'producerMetadata'
|
475
|
+
collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::ConnectorsV2::ProvisionedResource, decorator: Google::Apis::ConnectorsV2::ProvisionedResource::Representation
|
476
|
+
|
477
|
+
property :slm_instance_template, as: 'slmInstanceTemplate'
|
478
|
+
property :slo_metadata, as: 'sloMetadata', class: Google::Apis::ConnectorsV2::SloMetadata, decorator: Google::Apis::ConnectorsV2::SloMetadata::Representation
|
479
|
+
|
480
|
+
hash :software_versions, as: 'softwareVersions'
|
481
|
+
property :state, as: 'state'
|
482
|
+
property :tenant_project_id, as: 'tenantProjectId'
|
483
|
+
property :update_time, as: 'updateTime'
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
321
487
|
class JsonSchema
|
322
488
|
# @private
|
323
489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -365,6 +531,84 @@ module Google
|
|
365
531
|
end
|
366
532
|
end
|
367
533
|
|
534
|
+
class MaintenancePolicy
|
535
|
+
# @private
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
537
|
+
property :create_time, as: 'createTime'
|
538
|
+
property :description, as: 'description'
|
539
|
+
hash :labels, as: 'labels'
|
540
|
+
property :name, as: 'name'
|
541
|
+
property :state, as: 'state'
|
542
|
+
property :update_policy, as: 'updatePolicy', class: Google::Apis::ConnectorsV2::UpdatePolicy, decorator: Google::Apis::ConnectorsV2::UpdatePolicy::Representation
|
543
|
+
|
544
|
+
property :update_time, as: 'updateTime'
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
class MaintenanceSchedule
|
549
|
+
# @private
|
550
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
551
|
+
property :can_reschedule, as: 'canReschedule'
|
552
|
+
property :end_time, as: 'endTime'
|
553
|
+
property :rollout_management_policy, as: 'rolloutManagementPolicy'
|
554
|
+
property :schedule_deadline_time, as: 'scheduleDeadlineTime'
|
555
|
+
property :start_time, as: 'startTime'
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
class MaintenanceSettings
|
560
|
+
# @private
|
561
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
562
|
+
property :exclude, as: 'exclude'
|
563
|
+
property :is_rollback, as: 'isRollback'
|
564
|
+
hash :maintenance_policies, as: 'maintenancePolicies', class: Google::Apis::ConnectorsV2::MaintenancePolicy, decorator: Google::Apis::ConnectorsV2::MaintenancePolicy::Representation
|
565
|
+
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
569
|
+
class MaintenanceWindow
|
570
|
+
# @private
|
571
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
572
|
+
property :daily_cycle, as: 'dailyCycle', class: Google::Apis::ConnectorsV2::DailyCycle, decorator: Google::Apis::ConnectorsV2::DailyCycle::Representation
|
573
|
+
|
574
|
+
property :weekly_cycle, as: 'weeklyCycle', class: Google::Apis::ConnectorsV2::WeeklyCycle, decorator: Google::Apis::ConnectorsV2::WeeklyCycle::Representation
|
575
|
+
|
576
|
+
end
|
577
|
+
end
|
578
|
+
|
579
|
+
class NodeSloMetadata
|
580
|
+
# @private
|
581
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
582
|
+
property :location, as: 'location'
|
583
|
+
property :node_id, as: 'nodeId'
|
584
|
+
property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::ConnectorsV2::PerSliSloEligibility, decorator: Google::Apis::ConnectorsV2::PerSliSloEligibility::Representation
|
585
|
+
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
class NotificationParameter
|
590
|
+
# @private
|
591
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
592
|
+
collection :values, as: 'values'
|
593
|
+
end
|
594
|
+
end
|
595
|
+
|
596
|
+
class PerSliSloEligibility
|
597
|
+
# @private
|
598
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
599
|
+
hash :eligibilities, as: 'eligibilities', class: Google::Apis::ConnectorsV2::SloEligibility, decorator: Google::Apis::ConnectorsV2::SloEligibility::Representation
|
600
|
+
|
601
|
+
end
|
602
|
+
end
|
603
|
+
|
604
|
+
class ProvisionedResource
|
605
|
+
# @private
|
606
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
607
|
+
property :resource_type, as: 'resourceType'
|
608
|
+
property :resource_url, as: 'resourceUrl'
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
368
612
|
class Query
|
369
613
|
# @private
|
370
614
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -417,12 +661,70 @@ module Google
|
|
417
661
|
end
|
418
662
|
end
|
419
663
|
|
664
|
+
class Schedule
|
665
|
+
# @private
|
666
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
667
|
+
property :day, as: 'day'
|
668
|
+
property :duration, as: 'duration'
|
669
|
+
property :start_time, as: 'startTime', class: Google::Apis::ConnectorsV2::TimeOfDay, decorator: Google::Apis::ConnectorsV2::TimeOfDay::Representation
|
670
|
+
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
674
|
+
class SloEligibility
|
675
|
+
# @private
|
676
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
677
|
+
property :eligible, as: 'eligible'
|
678
|
+
property :reason, as: 'reason'
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
class SloMetadata
|
683
|
+
# @private
|
684
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
685
|
+
collection :nodes, as: 'nodes', class: Google::Apis::ConnectorsV2::NodeSloMetadata, decorator: Google::Apis::ConnectorsV2::NodeSloMetadata::Representation
|
686
|
+
|
687
|
+
property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::ConnectorsV2::PerSliSloEligibility, decorator: Google::Apis::ConnectorsV2::PerSliSloEligibility::Representation
|
688
|
+
|
689
|
+
property :tier, as: 'tier'
|
690
|
+
end
|
691
|
+
end
|
692
|
+
|
693
|
+
class TimeOfDay
|
694
|
+
# @private
|
695
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
696
|
+
property :hours, as: 'hours'
|
697
|
+
property :minutes, as: 'minutes'
|
698
|
+
property :nanos, as: 'nanos'
|
699
|
+
property :seconds, as: 'seconds'
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
420
703
|
class UpdateEntitiesWithConditionsResponse
|
421
704
|
# @private
|
422
705
|
class Representation < Google::Apis::Core::JsonRepresentation
|
423
706
|
hash :response, as: 'response'
|
424
707
|
end
|
425
708
|
end
|
709
|
+
|
710
|
+
class UpdatePolicy
|
711
|
+
# @private
|
712
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
713
|
+
property :channel, as: 'channel'
|
714
|
+
collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::ConnectorsV2::DenyMaintenancePeriod, decorator: Google::Apis::ConnectorsV2::DenyMaintenancePeriod::Representation
|
715
|
+
|
716
|
+
property :window, as: 'window', class: Google::Apis::ConnectorsV2::MaintenanceWindow, decorator: Google::Apis::ConnectorsV2::MaintenanceWindow::Representation
|
717
|
+
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
class WeeklyCycle
|
722
|
+
# @private
|
723
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
724
|
+
collection :schedule, as: 'schedule', class: Google::Apis::ConnectorsV2::Schedule, decorator: Google::Apis::ConnectorsV2::Schedule::Representation
|
725
|
+
|
726
|
+
end
|
727
|
+
end
|
426
728
|
end
|
427
729
|
end
|
428
730
|
end
|
@@ -33,6 +33,8 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors
|
35
35
|
class ConnectorsService < Google::Apis::Core::BaseService
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://connectors.$UNIVERSE_DOMAIN$/"
|
37
|
+
|
36
38
|
# @return [String]
|
37
39
|
# API key. Your API key identifies your project and provides you with API access,
|
38
40
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -44,7 +46,7 @@ module Google
|
|
44
46
|
attr_accessor :quota_user
|
45
47
|
|
46
48
|
def initialize
|
47
|
-
super(
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
48
50
|
client_name: 'google-apis-connectors_v2',
|
49
51
|
client_version: Google::Apis::ConnectorsV2::GEM_VERSION)
|
50
52
|
@batch_path = 'batch'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-connectors_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.10.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Connectors API V2
|