feat: Automated regeneration of managedidentities v1 client (#1514)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2020-11-14 02:39:42,691 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-managedidentities-v1
nothing to commit, working tree clean
2020-11-14 02:39:42,716 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth managedidentities v1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth managedidentities v1
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.49.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Installing mime-types-data 3.2020.1104
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.10.0
Installing rspec-support 3.10.0
Fetching rspec-core 3.10.0
Installing rspec-core 3.10.0
Fetching rspec-expectations 3.10.0
Installing rspec-expectations 3.10.0
Fetching rspec-mocks 3.10.0
Installing rspec-mocks 3.10.0
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.20.0
Installing parallel 1.20.0
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=managedidentities.v1 --names-out=/workspace/api_names_out.yaml
Loading managedidentities, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/managedidentities.v1.json
W, [2020-11-14T10:40:02.684914 #241]  WARN -- : Found reserved property 'trust'
W, [2020-11-14T10:40:02.684970 #241]  WARN -- : Changed to 'trust_prop'
W, [2020-11-14T10:40:02.685440 #241]  WARN -- : Found reserved property 'trust'
W, [2020-11-14T10:40:02.685457 #241]  WARN -- : Changed to 'trust_prop'
W, [2020-11-14T10:40:02.685804 #241]  WARN -- : Found reserved property 'trust'
W, [2020-11-14T10:40:02.685817 #241]  WARN -- : Changed to 'trust_prop'
W, [2020-11-14T10:40:02.689887 #241]  WARN -- : Found reserved property 'trust'
W, [2020-11-14T10:40:02.689919 #241]  WARN -- : Changed to 'trust_prop'
W, [2020-11-14T10:40:02.690425 #241]  WARN -- : Found reserved property 'trust'
W, [2020-11-14T10:40:02.690440 #241]  WARN -- : Changed to 'trust_prop'
    conflict  google/apis/managedidentities_v1.rb
<edidentities_v1.rb? (enter "h" for help) [Ynaqdhm] a
       force  google/apis/managedidentities_v1.rb
   identical  google/apis/managedidentities_v1/service.rb
    conflict  google/apis/managedidentities_v1/classes.rb
       force  google/apis/managedidentities_v1/classes.rb
    conflict  google/apis/managedidentities_v1/representations.rb
       force  google/apis/managedidentities_v1/representations.rb
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2020-11-14 02:40:06,128 synthtool [DEBUG] > Wrote metadata to generated/google/apis/managedidentities_v1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/managedidentities_v1/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/29212574-cbbb-4b1e-a3d1-a48fbacb74be/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2020-11-14 02:52:01 -08:00 committed by GitHub
parent 94b9cd6d15
commit 54ef4fcc4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 538 additions and 6 deletions

View File

@ -115587,6 +115587,17 @@
"/managedidentities:v1/Binding/members/member": member "/managedidentities:v1/Binding/members/member": member
"/managedidentities:v1/Binding/role": role "/managedidentities:v1/Binding/role": role
"/managedidentities:v1/CancelOperationRequest": cancel_operation_request "/managedidentities:v1/CancelOperationRequest": cancel_operation_request
"/managedidentities:v1/DailyCycle": daily_cycle
"/managedidentities:v1/DailyCycle/duration": duration
"/managedidentities:v1/DailyCycle/startTime": start_time
"/managedidentities:v1/Date": date
"/managedidentities:v1/Date/day": day
"/managedidentities:v1/Date/month": month
"/managedidentities:v1/Date/year": year
"/managedidentities:v1/DenyMaintenancePeriod": deny_maintenance_period
"/managedidentities:v1/DenyMaintenancePeriod/endDate": end_date
"/managedidentities:v1/DenyMaintenancePeriod/startDate": start_date
"/managedidentities:v1/DenyMaintenancePeriod/time": time
"/managedidentities:v1/DetachTrustRequest": detach_trust_request "/managedidentities:v1/DetachTrustRequest": detach_trust_request
"/managedidentities:v1/DetachTrustRequest/trust": trust_prop "/managedidentities:v1/DetachTrustRequest/trust": trust_prop
"/managedidentities:v1/Domain": domain "/managedidentities:v1/Domain": domain
@ -115662,6 +115673,8 @@
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule/startTime": start_time "/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule/startTime": start_time
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings": google_cloud_saasaccelerator_management_providers_v1_maintenance_settings "/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings": google_cloud_saasaccelerator_management_providers_v1_maintenance_settings
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings/exclude": exclude "/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings/exclude": exclude
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings/maintenancePolicies": maintenance_policies
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings/maintenancePolicies/maintenance_policy": maintenance_policy
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata": google_cloud_saasaccelerator_management_providers_v1_node_slo_metadata "/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata": google_cloud_saasaccelerator_management_providers_v1_node_slo_metadata
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata/exclusions": exclusions "/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata/exclusions": exclusions
"/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata/exclusions/exclusion": exclusion "/managedidentities:v1/GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata/exclusions/exclusion": exclusion
@ -115707,6 +115720,18 @@
"/managedidentities:v1/Location/metadata": metadata "/managedidentities:v1/Location/metadata": metadata
"/managedidentities:v1/Location/metadata/metadatum": metadatum "/managedidentities:v1/Location/metadata/metadatum": metadatum
"/managedidentities:v1/Location/name": name "/managedidentities:v1/Location/name": name
"/managedidentities:v1/MaintenancePolicy": maintenance_policy
"/managedidentities:v1/MaintenancePolicy/createTime": create_time
"/managedidentities:v1/MaintenancePolicy/description": description
"/managedidentities:v1/MaintenancePolicy/labels": labels
"/managedidentities:v1/MaintenancePolicy/labels/label": label
"/managedidentities:v1/MaintenancePolicy/name": name
"/managedidentities:v1/MaintenancePolicy/state": state
"/managedidentities:v1/MaintenancePolicy/updatePolicy": update_policy
"/managedidentities:v1/MaintenancePolicy/updateTime": update_time
"/managedidentities:v1/MaintenanceWindow": maintenance_window
"/managedidentities:v1/MaintenanceWindow/dailyCycle": daily_cycle
"/managedidentities:v1/MaintenanceWindow/weeklyCycle": weekly_cycle
"/managedidentities:v1/Operation": operation "/managedidentities:v1/Operation": operation
"/managedidentities:v1/Operation/done": done "/managedidentities:v1/Operation/done": done
"/managedidentities:v1/Operation/error": error "/managedidentities:v1/Operation/error": error
@ -115735,6 +115760,10 @@
"/managedidentities:v1/ResetAdminPasswordRequest": reset_admin_password_request "/managedidentities:v1/ResetAdminPasswordRequest": reset_admin_password_request
"/managedidentities:v1/ResetAdminPasswordResponse": reset_admin_password_response "/managedidentities:v1/ResetAdminPasswordResponse": reset_admin_password_response
"/managedidentities:v1/ResetAdminPasswordResponse/password": password "/managedidentities:v1/ResetAdminPasswordResponse/password": password
"/managedidentities:v1/Schedule": schedule
"/managedidentities:v1/Schedule/day": day
"/managedidentities:v1/Schedule/duration": duration
"/managedidentities:v1/Schedule/startTime": start_time
"/managedidentities:v1/SetIamPolicyRequest": set_iam_policy_request "/managedidentities:v1/SetIamPolicyRequest": set_iam_policy_request
"/managedidentities:v1/SetIamPolicyRequest/policy": policy "/managedidentities:v1/SetIamPolicyRequest/policy": policy
"/managedidentities:v1/Status": status "/managedidentities:v1/Status": status
@ -115749,6 +115778,11 @@
"/managedidentities:v1/TestIamPermissionsResponse": test_iam_permissions_response "/managedidentities:v1/TestIamPermissionsResponse": test_iam_permissions_response
"/managedidentities:v1/TestIamPermissionsResponse/permissions": permissions "/managedidentities:v1/TestIamPermissionsResponse/permissions": permissions
"/managedidentities:v1/TestIamPermissionsResponse/permissions/permission": permission "/managedidentities:v1/TestIamPermissionsResponse/permissions/permission": permission
"/managedidentities:v1/TimeOfDay": time_of_day
"/managedidentities:v1/TimeOfDay/hours": hours
"/managedidentities:v1/TimeOfDay/minutes": minutes
"/managedidentities:v1/TimeOfDay/nanos": nanos
"/managedidentities:v1/TimeOfDay/seconds": seconds
"/managedidentities:v1/Trust": trust_prop "/managedidentities:v1/Trust": trust_prop
"/managedidentities:v1/Trust/createTime": create_time "/managedidentities:v1/Trust/createTime": create_time
"/managedidentities:v1/Trust/lastTrustHeartbeatTime": last_trust_heartbeat_time "/managedidentities:v1/Trust/lastTrustHeartbeatTime": last_trust_heartbeat_time
@ -115762,8 +115796,16 @@
"/managedidentities:v1/Trust/trustHandshakeSecret": trust_handshake_secret "/managedidentities:v1/Trust/trustHandshakeSecret": trust_handshake_secret
"/managedidentities:v1/Trust/trustType": trust_type "/managedidentities:v1/Trust/trustType": trust_type
"/managedidentities:v1/Trust/updateTime": update_time "/managedidentities:v1/Trust/updateTime": update_time
"/managedidentities:v1/UpdatePolicy": update_policy
"/managedidentities:v1/UpdatePolicy/channel": channel
"/managedidentities:v1/UpdatePolicy/denyMaintenancePeriods": deny_maintenance_periods
"/managedidentities:v1/UpdatePolicy/denyMaintenancePeriods/deny_maintenance_period": deny_maintenance_period
"/managedidentities:v1/UpdatePolicy/window": window
"/managedidentities:v1/ValidateTrustRequest": validate_trust_request "/managedidentities:v1/ValidateTrustRequest": validate_trust_request
"/managedidentities:v1/ValidateTrustRequest/trust": trust_prop "/managedidentities:v1/ValidateTrustRequest/trust": trust_prop
"/managedidentities:v1/WeeklyCycle": weekly_cycle
"/managedidentities:v1/WeeklyCycle/schedule": schedule
"/managedidentities:v1/WeeklyCycle/schedule/schedule": schedule
"/managedidentities:v1/fields": fields "/managedidentities:v1/fields": fields
"/managedidentities:v1/key": key "/managedidentities:v1/key": key
"/managedidentities:v1/managedidentities.projects.locations.get": get_project_location "/managedidentities:v1/managedidentities.projects.locations.get": get_project_location

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/managed-microsoft-ad/ # @see https://cloud.google.com/managed-microsoft-ad/
module ManagedidentitiesV1 module ManagedidentitiesV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20201027' REVISION = '20201030'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -132,6 +132,122 @@ module Google
end end
end end
# Time window specified for daily operations.
class DailyCycle
include Google::Apis::Core::Hashable
# Output only. Duration of the time window, set by service producer.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `startTime`
# @return [Google::Apis::ManagedidentitiesV1::TimeOfDay]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
# following: * A full date, with non-zero year, month, and day values * A month
# and day value, with a zero year, such as an anniversary * A year on its own,
# with zero month and day values * A year and month value, with a zero day, such
# as a credit card expiration date Related types are google.type.TimeOfDay and `
# google.protobuf.Timestamp`.
class Date
include Google::Apis::Core::Hashable
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
# specify a year by itself or a year and month where the day isn't significant.
# Corresponds to the JSON property `day`
# @return [Fixnum]
attr_accessor :day
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
# and day.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
# year.
# Corresponds to the JSON property `year`
# @return [Fixnum]
attr_accessor :year
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@day = args[:day] if args.key?(:day)
@month = args[:month] if args.key?(:month)
@year = args[:year] if args.key?(:year)
end
end
# DenyMaintenancePeriod definition. Maintenance is forbidden within the deny
# period. The start_date must be less than the end_date.
class DenyMaintenancePeriod
include Google::Apis::Core::Hashable
# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
# following: * A full date, with non-zero year, month, and day values * A month
# and day value, with a zero year, such as an anniversary * A year on its own,
# with zero month and day values * A year and month value, with a zero day, such
# as a credit card expiration date Related types are google.type.TimeOfDay and `
# google.protobuf.Timestamp`.
# Corresponds to the JSON property `endDate`
# @return [Google::Apis::ManagedidentitiesV1::Date]
attr_accessor :end_date
# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
# following: * A full date, with non-zero year, month, and day values * A month
# and day value, with a zero year, such as an anniversary * A year on its own,
# with zero month and day values * A year and month value, with a zero day, such
# as a credit card expiration date Related types are google.type.TimeOfDay and `
# google.protobuf.Timestamp`.
# Corresponds to the JSON property `startDate`
# @return [Google::Apis::ManagedidentitiesV1::Date]
attr_accessor :start_date
# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `time`
# @return [Google::Apis::ManagedidentitiesV1::TimeOfDay]
attr_accessor :time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_date = args[:end_date] if args.key?(:end_date)
@start_date = args[:start_date] if args.key?(:start_date)
@time = args[:time] if args.key?(:time)
end
end
# Request message for DetachTrust # Request message for DetachTrust
class DetachTrustRequest class DetachTrustRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -504,10 +620,10 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# The MaintenancePolicies that have been attached to the instance. The key must # Deprecated. The MaintenancePolicies that have been attached to the instance.
# be of the type name of the oneof policy name defined in MaintenancePolicy, and # The key must be of the type name of the oneof policy name defined in
# the referenced policy must define the same policy type. For complete details # MaintenancePolicy, and the referenced policy must define the same policy type.
# of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. # For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.
# Corresponds to the JSON property `maintenancePolicyNames` # Corresponds to the JSON property `maintenancePolicyNames`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :maintenance_policy_names attr_accessor :maintenance_policy_names
@ -659,6 +775,16 @@ module Google
attr_accessor :exclude attr_accessor :exclude
alias_method :exclude?, :exclude alias_method :exclude?, :exclude
# Optional. The MaintenancePolicies that have been attached to the instance. The
# key must be of the type name of the oneof policy name defined in
# MaintenancePolicy, and the embedded policy must define the same policy type.
# For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.
# If only the name is needed (like in the deprecated Instance.
# maintenance_policy_names field) then only populate MaintenancePolicy.name.
# Corresponds to the JSON property `maintenancePolicies`
# @return [Hash<String,Google::Apis::ManagedidentitiesV1::MaintenancePolicy>]
attr_accessor :maintenance_policies
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -666,6 +792,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@exclude = args[:exclude] if args.key?(:exclude) @exclude = args[:exclude] if args.key?(:exclude)
@maintenance_policies = args[:maintenance_policies] if args.key?(:maintenance_policies)
end end
end end
@ -995,6 +1122,93 @@ module Google
end end
end end
# Defines policies to service maintenance events.
class MaintenancePolicy
include Google::Apis::Core::Hashable
# Output only. The time when the resource was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. Description of what this policy is for. Create/Update methods return
# INVALID_ARGUMENT if the length is greater than 512.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Optional. Resource labels to represent user provided metadata. Each label is a
# key-value pair, where both the key and the value are arbitrary strings
# provided by the user.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Required. MaintenancePolicy name using the form: `projects/`project_id`/
# locations/`location_id`/maintenancePolicies/`maintenance_policy_id`` where `
# project_id` refers to a GCP consumer project ID, `location_id` refers to a GCP
# region/zone, `maintenance_policy_id` must be 1-63 characters long and match
# the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Optional. The state of the policy.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Maintenance policy applicable to instance updates.
# Corresponds to the JSON property `updatePolicy`
# @return [Google::Apis::ManagedidentitiesV1::UpdatePolicy]
attr_accessor :update_policy
# Output only. The time when the resource was updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@state = args[:state] if args.key?(:state)
@update_policy = args[:update_policy] if args.key?(:update_policy)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# MaintenanceWindow definition.
class MaintenanceWindow
include Google::Apis::Core::Hashable
# Time window specified for daily operations.
# Corresponds to the JSON property `dailyCycle`
# @return [Google::Apis::ManagedidentitiesV1::DailyCycle]
attr_accessor :daily_cycle
# Time window specified for weekly operations.
# Corresponds to the JSON property `weeklyCycle`
# @return [Google::Apis::ManagedidentitiesV1::WeeklyCycle]
attr_accessor :weekly_cycle
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@daily_cycle = args[:daily_cycle] if args.key?(:daily_cycle)
@weekly_cycle = args[:weekly_cycle] if args.key?(:weekly_cycle)
end
end
# This resource represents a long-running operation that is the result of a # This resource represents a long-running operation that is the result of a
# network API call. # network API call.
class Operation class Operation
@ -1259,6 +1473,39 @@ module Google
end end
end end
# Configure the schedule.
class Schedule
include Google::Apis::Core::Hashable
# Allows to define schedule that runs specified day of the week.
# Corresponds to the JSON property `day`
# @return [String]
attr_accessor :day
# Output only. Duration of the time window, set by service producer.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `startTime`
# @return [Google::Apis::ManagedidentitiesV1::TimeOfDay]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@day = args[:day] if args.key?(:day)
@duration = args[:duration] if args.key?(:duration)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Request message for `SetIamPolicy` method. # Request message for `SetIamPolicy` method.
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1383,6 +1630,47 @@ module Google
end end
end end
# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
class TimeOfDay
include Google::Apis::Core::Hashable
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
# allow the value "24:00:00" for scenarios like business closing time.
# Corresponds to the JSON property `hours`
# @return [Fixnum]
attr_accessor :hours
# Minutes of hour of day. Must be from 0 to 59.
# Corresponds to the JSON property `minutes`
# @return [Fixnum]
attr_accessor :minutes
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
# Corresponds to the JSON property `nanos`
# @return [Fixnum]
attr_accessor :nanos
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
# allow the value 60 if it allows leap-seconds.
# Corresponds to the JSON property `seconds`
# @return [Fixnum]
attr_accessor :seconds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@hours = args[:hours] if args.key?(:hours)
@minutes = args[:minutes] if args.key?(:minutes)
@nanos = args[:nanos] if args.key?(:nanos)
@seconds = args[:seconds] if args.key?(:seconds)
end
end
# Represents a relationship between two domains. This allows a controller in one # Represents a relationship between two domains. This allows a controller in one
# domain to authenticate a user in another domain. # domain to authenticate a user in another domain.
class TrustProp class TrustProp
@ -1471,6 +1759,40 @@ module Google
end end
end end
# Maintenance policy applicable to instance updates.
class UpdatePolicy
include Google::Apis::Core::Hashable
# Optional. Relative scheduling channel applied to resource.
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
# Deny Maintenance Period that is applied to resource to indicate when
# maintenance is forbidden. User can specify zero or more non-overlapping deny
# periods. For V1, Maximum number of deny_maintenance_periods is expected to be
# one.
# Corresponds to the JSON property `denyMaintenancePeriods`
# @return [Array<Google::Apis::ManagedidentitiesV1::DenyMaintenancePeriod>]
attr_accessor :deny_maintenance_periods
# MaintenanceWindow definition.
# Corresponds to the JSON property `window`
# @return [Google::Apis::ManagedidentitiesV1::MaintenanceWindow]
attr_accessor :window
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel = args[:channel] if args.key?(:channel)
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
@window = args[:window] if args.key?(:window)
end
end
# Request message for ValidateTrust # Request message for ValidateTrust
class ValidateTrustRequest class ValidateTrustRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1490,6 +1812,25 @@ module Google
@trust_prop = args[:trust_prop] if args.key?(:trust_prop) @trust_prop = args[:trust_prop] if args.key?(:trust_prop)
end end
end end
# Time window specified for weekly operations.
class WeeklyCycle
include Google::Apis::Core::Hashable
# User can specify multiple windows in a week. Minimum of 1 window.
# Corresponds to the JSON property `schedule`
# @return [Array<Google::Apis::ManagedidentitiesV1::Schedule>]
attr_accessor :schedule
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@schedule = args[:schedule] if args.key?(:schedule)
end
end
end end
end end
end end

View File

@ -40,6 +40,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DailyCycle
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DenyMaintenancePeriod
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DetachTrustRequest class DetachTrustRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,6 +172,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class MaintenancePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MaintenanceWindow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -190,6 +220,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Schedule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,18 +250,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class TimeOfDay
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrustProp class TrustProp
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpdatePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ValidateTrustRequest class ValidateTrustRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class WeeklyCycle
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AttachTrustRequest class AttachTrustRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -251,6 +305,36 @@ module Google
end end
end end
class DailyCycle
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :start_time, as: 'startTime', class: Google::Apis::ManagedidentitiesV1::TimeOfDay, decorator: Google::Apis::ManagedidentitiesV1::TimeOfDay::Representation
end
end
class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :month, as: 'month'
property :year, as: 'year'
end
end
class DenyMaintenancePeriod
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_date, as: 'endDate', class: Google::Apis::ManagedidentitiesV1::Date, decorator: Google::Apis::ManagedidentitiesV1::Date::Representation
property :start_date, as: 'startDate', class: Google::Apis::ManagedidentitiesV1::Date, decorator: Google::Apis::ManagedidentitiesV1::Date::Representation
property :time, as: 'time', class: Google::Apis::ManagedidentitiesV1::TimeOfDay, decorator: Google::Apis::ManagedidentitiesV1::TimeOfDay::Representation
end
end
class DetachTrustRequest class DetachTrustRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -369,6 +453,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :exclude, as: 'exclude' property :exclude, as: 'exclude'
hash :maintenance_policies, as: 'maintenancePolicies', class: Google::Apis::ManagedidentitiesV1::MaintenancePolicy, decorator: Google::Apis::ManagedidentitiesV1::MaintenancePolicy::Representation
end end
end end
@ -460,6 +546,30 @@ module Google
end end
end end
class MaintenancePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
hash :labels, as: 'labels'
property :name, as: 'name'
property :state, as: 'state'
property :update_policy, as: 'updatePolicy', class: Google::Apis::ManagedidentitiesV1::UpdatePolicy, decorator: Google::Apis::ManagedidentitiesV1::UpdatePolicy::Representation
property :update_time, as: 'updateTime'
end
end
class MaintenanceWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :daily_cycle, as: 'dailyCycle', class: Google::Apis::ManagedidentitiesV1::DailyCycle, decorator: Google::Apis::ManagedidentitiesV1::DailyCycle::Representation
property :weekly_cycle, as: 'weeklyCycle', class: Google::Apis::ManagedidentitiesV1::WeeklyCycle, decorator: Google::Apis::ManagedidentitiesV1::WeeklyCycle::Representation
end
end
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -516,6 +626,16 @@ module Google
end end
end end
class Schedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :duration, as: 'duration'
property :start_time, as: 'startTime', class: Google::Apis::ManagedidentitiesV1::TimeOfDay, decorator: Google::Apis::ManagedidentitiesV1::TimeOfDay::Representation
end
end
class SetIamPolicyRequest class SetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -547,6 +667,16 @@ module Google
end end
end end
class TimeOfDay
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hours, as: 'hours'
property :minutes, as: 'minutes'
property :nanos, as: 'nanos'
property :seconds, as: 'seconds'
end
end
class TrustProp class TrustProp
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -564,6 +694,17 @@ module Google
end end
end end
class UpdatePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel, as: 'channel'
collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::ManagedidentitiesV1::DenyMaintenancePeriod, decorator: Google::Apis::ManagedidentitiesV1::DenyMaintenancePeriod::Representation
property :window, as: 'window', class: Google::Apis::ManagedidentitiesV1::MaintenanceWindow, decorator: Google::Apis::ManagedidentitiesV1::MaintenanceWindow::Representation
end
end
class ValidateTrustRequest class ValidateTrustRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -571,6 +712,14 @@ module Google
end end
end end
class WeeklyCycle
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :schedule, as: 'schedule', class: Google::Apis::ManagedidentitiesV1::Schedule, decorator: Google::Apis::ManagedidentitiesV1::Schedule::Representation
end
end
end end
end end
end end

View File

@ -4,7 +4,7 @@
"git": { "git": {
"name": ".", "name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git", "remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "79474e618bb14370e8c0fc98c9c6f6f7928fdb91" "sha": "94b9cd6d15cbae1dbec16415a5988f71d5abc1be"
} }
} }
] ]