google-cloud-maintenance-api-v1beta 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e77837e8e04b65b22e11a19b71a453d50793a9f4e1cd544db599204f00b1a49
4
- data.tar.gz: 8e1ac18ffa711848cd22fb1b944df11547ab5b5ca678a4e7735a232dea1536c9
3
+ metadata.gz: e7f9e2ceddd58e5cd2a24ecba8d40a3615f19c84b7288a6f84b0a66cf0721560
4
+ data.tar.gz: aae47f1bfe5dca7cd814f3614beee0f712e211cbb35c2bd3c035f846953407fd
5
5
  SHA512:
6
- metadata.gz: e9e9615f5a3201936c098e1328617c63fd98c1f18513454656db9d9810b0e4e38762bb52b6b0dec08f8fe23011978033597b9a41fa4729a8ba7f206c3b4e0fae
7
- data.tar.gz: 0be3fd6c17d5d271c932e81d1d012d29516d371b15a6af4d371281cfe90ff64bca24d1a509e4f169d987d4ab1de17b407e59e732c13a01f7939cf003c280ff00
6
+ metadata.gz: 61b626b6c3220fe57d61d276ec9849bdfd3c7a97cf604e73965b946a17823131e875ba9bcab18dfa61b7d01775a7add3790dc90e7177b4f53f6abf1a0f4aabed
7
+ data.tar.gz: a403f309c37b981d12366398281ea2d535bae2233d52ad5ea480f8415c7b361961b2ec8868dccd292ae667fb5b81246438a7f9abd4db6f2f26b920e71004ef93
@@ -538,8 +538,6 @@ module Google
538
538
  # @return [::String,nil]
539
539
  # @!attribute [rw] credentials
540
540
  # Credentials to send with calls. You may provide any of the following types:
541
- # * (`String`) The path to a service account key file in JSON format
542
- # * (`Hash`) A service account key as a Hash
543
541
  # * (`Google::Auth::Credentials`) A googleauth credentials object
544
542
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
545
543
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -548,7 +546,26 @@ module Google
548
546
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
549
547
  # * (`nil`) indicating no credentials
550
548
  #
551
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
549
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
550
+ # is deprecated. Providing an unvalidated credential configuration to
551
+ # Google APIs can compromise the security of your systems and data.
552
+ #
553
+ # @example
554
+ #
555
+ # # The recommended way to provide credentials is to use the `make_creds` method
556
+ # # on the appropriate credentials class for your environment.
557
+ #
558
+ # require "googleauth"
559
+ #
560
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
561
+ # json_key_io: ::File.open("/path/to/keyfile.json")
562
+ # )
563
+ #
564
+ # client = ::Google::Cloud::Maintenance::Api::V1beta::Maintenance::Client.new do |config|
565
+ # config.credentials = credentials
566
+ # end
567
+ #
568
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
552
569
  # external source for authentication to Google Cloud, you must validate it before
553
570
  # providing it to a Google API client library. Providing an unvalidated credential
554
571
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -14,30 +14,8 @@ require 'google/protobuf/timestamp_pb'
14
14
 
15
15
  descriptor_data = "\n=google/cloud/maintenance/api/v1beta/maintenance_service.proto\x12#google.cloud.maintenance.api.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb4\x01\n\x1cSummarizeMaintenancesRequest\x12G\n\x06parent\x18\x96N \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.maintenance.googleapis.com/ResourceMaintenance\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xa4\x01\n\x1dSummarizeMaintenancesResponse\x12N\n\x0cmaintenances\x18\x8dR \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceSummary\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x19\n\x0bunreachable\x18\x8fR \x03(\tB\x03\xe0\x41\x06\"\xa6\x06\n\x12MaintenanceSummary\x12\x1d\n\x10maintenance_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12O\n\x08\x63\x61tegory\x18\r \x01(\x0e\x32\x38.google.cloud.maintenance.api.v1beta.MaintenanceCategoryB\x03\xe0\x41\x03\x12I\n maintenance_scheduled_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x1emaintenance_scheduled_end_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11user_controllable\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12N\n\x08\x63ontrols\x18\x0e \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceControlB\x03\xe0\x41\x03\x12Q\n\x05stats\x18\x0c \x03(\x0b\x32=.google.cloud.maintenance.api.v1beta.MaintenanceSummary.StatsB\x03\xe0\x41\x03\x1ap\n\x05Stats\x12\x10\n\x08group_by\x18\x01 \x01(\t\x12U\n\naggregates\x18\x02 \x03(\x0b\x32\x41.google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate\x1a)\n\tAggregate\x12\r\n\x05group\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xc8\r\n\x13ResourceMaintenance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12X\n\x08resource\x18\x02 \x01(\x0b\x32\x41.google.cloud.maintenance.api.v1beta.ResourceMaintenance.ResourceB\x03\xe0\x41\x03\x12^\n\x0bmaintenance\x18\x03 \x01(\x0b\x32\x44.google.cloud.maintenance.api.v1beta.ResourceMaintenance.MaintenanceB\x03\xe0\x41\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x17maintenance_cancel_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n maintenance_scheduled_start_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x1emaintenance_scheduled_end_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11user_controllable\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12N\n\x08\x63ontrols\x18\r \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceControlB\x03\xe0\x41\x03\x12Z\n\x06labels\x18\xa1Q \x03(\x0b\x32\x44.google.cloud.maintenance.api.v1beta.ResourceMaintenance.LabelsEntryB\x03\xe0\x41\x01\x12\x64\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32I.google.cloud.maintenance.api.v1beta.ResourceMaintenance.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x1aP\n\x08Resource\x12\x1a\n\rresource_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a\xa6\x01\n\x0bMaintenance\x12\x18\n\x10maintenance_name\x18\x01 \x01(\t\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12O\n\x08\x63\x61tegory\x18\x04 \x01(\x0e\x32\x38.google.cloud.maintenance.api.v1beta.MaintenanceCategoryB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04:\xb4\x01\xea\x41\xb0\x01\n.maintenance.googleapis.com/ResourceMaintenance\x12Sprojects/{project}/locations/{location}/resourceMaintenances/{resource_maintenance}*\x14resourceMaintenances2\x13resourceMaintenance\"\xe2\x01\n\x12MaintenanceControl\x12P\n\x07\x63ontrol\x18\x01 \x01(\x0e\x32?.google.cloud.maintenance.api.v1beta.MaintenanceControl.Control\x12\x11\n\tis_custom\x18\x02 \x01(\x08\x12\x15\n\rdocumentation\x18\x03 \x01(\t\"P\n\x07\x43ontrol\x12\x17\n\x13\x43ONTROL_UNSPECIFIED\x10\x00\x12\t\n\x05\x41PPLY\x10\x01\x12\x11\n\rMANAGE_POLICY\x10\x02\x12\x0e\n\nRESCHEDULE\x10\x03\"\xb7\x01\n\x1fListResourceMaintenancesRequest\x12G\n\x06parent\x18\x96N \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.maintenance.googleapis.com/ResourceMaintenance\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xac\x01\n ListResourceMaintenancesResponse\x12X\n\x15resource_maintenances\x18\x8dR \x03(\x0b\x32\x38.google.cloud.maintenance.api.v1beta.ResourceMaintenance\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"f\n\x1dGetResourceMaintenanceRequest\x12\x45\n\x04name\x18\x91N \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.maintenance.googleapis.com/ResourceMaintenance*c\n\x13MaintenanceCategory\x12$\n MAINTENANCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x12\n\x0eINFRASTRUCTURE\x10\x01\x12\x12\n\x0eSERVICE_UPDATE\x10\x03\x32\xb6\x06\n\x0bMaintenance\x12\xf7\x01\n\x15SummarizeMaintenances\x12\x41.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesRequest\x1a\x42.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{parent=projects/*/locations/*}/resourceMaintenances:summarize\x12\xf6\x01\n\x18ListResourceMaintenances\x12\x44.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesRequest\x1a\x45.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1beta/{parent=projects/*/locations/*}/resourceMaintenances\x12\xe3\x01\n\x16GetResourceMaintenance\x12\x42.google.cloud.maintenance.api.v1beta.GetResourceMaintenanceRequest\x1a\x38.google.cloud.maintenance.api.v1beta.ResourceMaintenance\"K\xda\x41\x04name\x82\xd3\xe4\x93\x02>\x12</v1beta/{name=projects/*/locations/*/resourceMaintenances/*}\x1aN\xca\x41\x1amaintenance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBw\n\'com.google.cloud.maintenance.api.v1betaB\x0fUMMServiceProtoP\x01Z9cloud.google.com/go/maintenance/api/apiv1beta/apipb;apipbb\x06proto3"
16
16
 
17
- pool = Google::Protobuf::DescriptorPool.generated_pool
18
-
19
- begin
20
- pool.add_serialized_file(descriptor_data)
21
- rescue TypeError
22
- # Compatibility code: will be removed in the next major version.
23
- require 'google/protobuf/descriptor_pb'
24
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
- parsed.clear_dependency
26
- serialized = parsed.class.encode(parsed)
27
- file = pool.add_serialized_file(serialized)
28
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
- imports = [
30
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
- ]
32
- imports.each do |type_name, expected_filename|
33
- import_file = pool.lookup(type_name).file_descriptor
34
- if import_file.name != expected_filename
35
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
- end
37
- end
38
- warn "Each proto file must use a consistent fully-qualified name."
39
- warn "This will become an error in the next major version."
40
- end
17
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
18
+ pool.add_serialized_file(descriptor_data)
41
19
 
42
20
  module Google
43
21
  module Cloud
@@ -22,7 +22,7 @@ module Google
22
22
  module Maintenance
23
23
  module Api
24
24
  module V1beta
25
- VERSION = "0.2.0"
25
+ VERSION = "0.3.0"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-maintenance-api-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: '3.1'
105
+ version: '3.2'
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="