google-apis-osconfig_v1 0.2.0 → 0.3.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: c446b1200c4418187f560ecdc5631999253e91a1ede9c238ce2f100b0c2b340c
4
- data.tar.gz: 11fff079cb814b811516ac2d7765ba3d919831e245f9d8f1cc9efc9dcbd5c866
3
+ metadata.gz: 5bf65c881f91851e0b69108d5071c379736d9ef88e847262009b18a5b0a72128
4
+ data.tar.gz: e4caf78245146647f4dfc96d932a3cd7bc6d098ace392deeaf6636511eee4910
5
5
  SHA512:
6
- metadata.gz: da5357530b4427413ee5cda8b95cce3d925ca1b7a5de15ed142366f43b66919c8664af49fc046ce85b4edcdc8f3382efc9dacff201525564b4aa66fe150d3e74
7
- data.tar.gz: 0ba177092ad9394a68254c38059a4a953afc48fe736dddcde5902272121e0fa81743911bd3a4ba285b8fddba1aa89fc7cb2f214b80d0536cd3aed9756a11b0c3
6
+ metadata.gz: f070a3eedf43d2764a6415ad246c231437822fdb7408ce4669cd69c0750dec2636d2d1b6afb924d5f5bf3b779b5d4247bf7ffb48878a5df439194ec24e9eeae9
7
+ data.tar.gz: 6607a99b310f70b1ccebbff62abcb86303383979d40ac8833fb565d4f6e59f8c5ace53f897c1259b267a116f98e35ae860d6fd670338da9be32ebcb58b82e916
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.3.0 (2021-03-20)
4
+
5
+ * Regenerated from discovery document revision 20210312
6
+ * Regenerated using generator version 0.2.0
7
+
3
8
  ### v0.2.0 (2021-03-04)
4
9
 
5
10
  * Regenerated using generator version 0.1.2
@@ -705,6 +705,31 @@ module Google
705
705
  end
706
706
  end
707
707
 
708
+ # The response message for Operations.ListOperations.
709
+ class ListOperationsResponse
710
+ include Google::Apis::Core::Hashable
711
+
712
+ # The standard List next-page token.
713
+ # Corresponds to the JSON property `nextPageToken`
714
+ # @return [String]
715
+ attr_accessor :next_page_token
716
+
717
+ # A list of operations that matches the specified filter in the request.
718
+ # Corresponds to the JSON property `operations`
719
+ # @return [Array<Google::Apis::OsconfigV1::Operation>]
720
+ attr_accessor :operations
721
+
722
+ def initialize(**args)
723
+ update!(**args)
724
+ end
725
+
726
+ # Update properties of this object
727
+ def update!(**args)
728
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
729
+ @operations = args[:operations] if args.key?(:operations)
730
+ end
731
+ end
732
+
708
733
  # A response message for listing patch deployments.
709
734
  class ListPatchDeploymentsResponse
710
735
  include Google::Apis::Core::Hashable
@@ -829,6 +854,68 @@ module Google
829
854
  end
830
855
  end
831
856
 
857
+ # This resource represents a long-running operation that is the result of a
858
+ # network API call.
859
+ class Operation
860
+ include Google::Apis::Core::Hashable
861
+
862
+ # If the value is `false`, it means the operation is still in progress. If `true`
863
+ # , the operation is completed, and either `error` or `response` is available.
864
+ # Corresponds to the JSON property `done`
865
+ # @return [Boolean]
866
+ attr_accessor :done
867
+ alias_method :done?, :done
868
+
869
+ # The `Status` type defines a logical error model that is suitable for different
870
+ # programming environments, including REST APIs and RPC APIs. It is used by [
871
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
872
+ # data: error code, error message, and error details. You can find out more
873
+ # about this error model and how to work with it in the [API Design Guide](https:
874
+ # //cloud.google.com/apis/design/errors).
875
+ # Corresponds to the JSON property `error`
876
+ # @return [Google::Apis::OsconfigV1::Status]
877
+ attr_accessor :error
878
+
879
+ # Service-specific metadata associated with the operation. It typically contains
880
+ # progress information and common metadata such as create time. Some services
881
+ # might not provide such metadata. Any method that returns a long-running
882
+ # operation should document the metadata type, if any.
883
+ # Corresponds to the JSON property `metadata`
884
+ # @return [Hash<String,Object>]
885
+ attr_accessor :metadata
886
+
887
+ # The server-assigned name, which is only unique within the same service that
888
+ # originally returns it. If you use the default HTTP mapping, the `name` should
889
+ # be a resource name ending with `operations/`unique_id``.
890
+ # Corresponds to the JSON property `name`
891
+ # @return [String]
892
+ attr_accessor :name
893
+
894
+ # The normal response of the operation in case of success. If the original
895
+ # method returns no data on success, such as `Delete`, the response is `google.
896
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
897
+ # the response should be the resource. For other methods, the response should
898
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
899
+ # example, if the original method name is `TakeSnapshot()`, the inferred
900
+ # response type is `TakeSnapshotResponse`.
901
+ # Corresponds to the JSON property `response`
902
+ # @return [Hash<String,Object>]
903
+ attr_accessor :response
904
+
905
+ def initialize(**args)
906
+ update!(**args)
907
+ end
908
+
909
+ # Update properties of this object
910
+ def update!(**args)
911
+ @done = args[:done] if args.key?(:done)
912
+ @error = args[:error] if args.key?(:error)
913
+ @metadata = args[:metadata] if args.key?(:metadata)
914
+ @name = args[:name] if args.key?(:name)
915
+ @response = args[:response] if args.key?(:response)
916
+ end
917
+ end
918
+
832
919
  # Patch configuration specifications. Contains details on how to apply the patch(
833
920
  # es) to a VM instance.
834
921
  class PatchConfig
@@ -1443,6 +1530,45 @@ module Google
1443
1530
  end
1444
1531
  end
1445
1532
 
1533
+ # The `Status` type defines a logical error model that is suitable for different
1534
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1535
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1536
+ # data: error code, error message, and error details. You can find out more
1537
+ # about this error model and how to work with it in the [API Design Guide](https:
1538
+ # //cloud.google.com/apis/design/errors).
1539
+ class Status
1540
+ include Google::Apis::Core::Hashable
1541
+
1542
+ # The status code, which should be an enum value of google.rpc.Code.
1543
+ # Corresponds to the JSON property `code`
1544
+ # @return [Fixnum]
1545
+ attr_accessor :code
1546
+
1547
+ # A list of messages that carry the error details. There is a common set of
1548
+ # message types for APIs to use.
1549
+ # Corresponds to the JSON property `details`
1550
+ # @return [Array<Hash<String,Object>>]
1551
+ attr_accessor :details
1552
+
1553
+ # A developer-facing error message, which should be in English. Any user-facing
1554
+ # error message should be localized and sent in the google.rpc.Status.details
1555
+ # field, or localized by the client.
1556
+ # Corresponds to the JSON property `message`
1557
+ # @return [String]
1558
+ attr_accessor :message
1559
+
1560
+ def initialize(**args)
1561
+ update!(**args)
1562
+ end
1563
+
1564
+ # Update properties of this object
1565
+ def update!(**args)
1566
+ @code = args[:code] if args.key?(:code)
1567
+ @details = args[:details] if args.key?(:details)
1568
+ @message = args[:message] if args.key?(:message)
1569
+ end
1570
+ end
1571
+
1446
1572
  # Represents a time of day. The date and time zone are either not significant or
1447
1573
  # are specified elsewhere. An API may choose to allow leap seconds. Related
1448
1574
  # types are google.type.Date and `google.protobuf.Timestamp`.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsconfigV1
18
18
  # Version of the google-apis-osconfig_v1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201112"
25
+ REVISION = "20210312"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class ListOperationsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class ListPatchDeploymentsResponse
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -160,6 +166,12 @@ module Google
160
166
  include Google::Apis::Core::JsonObjectSupport
161
167
  end
162
168
 
169
+ class Operation
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
163
175
  class PatchConfig
164
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
177
 
@@ -214,6 +226,12 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class Status
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class TimeOfDay
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -451,6 +469,15 @@ module Google
451
469
  end
452
470
  end
453
471
 
472
+ class ListOperationsResponse
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :next_page_token, as: 'nextPageToken'
476
+ collection :operations, as: 'operations', class: Google::Apis::OsconfigV1::Operation, decorator: Google::Apis::OsconfigV1::Operation::Representation
477
+
478
+ end
479
+ end
480
+
454
481
  class ListPatchDeploymentsResponse
455
482
  # @private
456
483
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -494,6 +521,18 @@ module Google
494
521
  end
495
522
  end
496
523
 
524
+ class Operation
525
+ # @private
526
+ class Representation < Google::Apis::Core::JsonRepresentation
527
+ property :done, as: 'done'
528
+ property :error, as: 'error', class: Google::Apis::OsconfigV1::Status, decorator: Google::Apis::OsconfigV1::Status::Representation
529
+
530
+ hash :metadata, as: 'metadata'
531
+ property :name, as: 'name'
532
+ hash :response, as: 'response'
533
+ end
534
+ end
535
+
497
536
  class PatchConfig
498
537
  # @private
499
538
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -641,6 +680,15 @@ module Google
641
680
  end
642
681
  end
643
682
 
683
+ class Status
684
+ # @private
685
+ class Representation < Google::Apis::Core::JsonRepresentation
686
+ property :code, as: 'code'
687
+ collection :details, as: 'details'
688
+ property :message, as: 'message'
689
+ end
690
+ end
691
+
644
692
  class TimeOfDay
645
693
  # @private
646
694
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -50,6 +50,85 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
+ # Deletes a long-running operation. This method indicates that the client is no
54
+ # longer interested in the operation result. It does not cancel the operation.
55
+ # If the server doesn't support this method, it returns `google.rpc.Code.
56
+ # UNIMPLEMENTED`.
57
+ # @param [String] name
58
+ # The name of the operation resource to be deleted.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::OsconfigV1::Empty] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::OsconfigV1::Empty]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:delete, 'v1/{+name}', options)
78
+ command.response_representation = Google::Apis::OsconfigV1::Empty::Representation
79
+ command.response_class = Google::Apis::OsconfigV1::Empty
80
+ command.params['name'] = name unless name.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
86
+ # Lists operations that match the specified filter in the request. If the server
87
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
88
+ # binding allows API services to override the binding to use different resource
89
+ # name schemes, such as `users/*/operations`. To override the binding, API
90
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
91
+ # service configuration. For backwards compatibility, the default name includes
92
+ # the operations collection id, however overriding users must ensure the name
93
+ # binding is the parent resource, without the operations collection id.
94
+ # @param [String] name
95
+ # The name of the operation's parent resource.
96
+ # @param [String] filter
97
+ # The standard list filter.
98
+ # @param [Fixnum] page_size
99
+ # The standard list page size.
100
+ # @param [String] page_token
101
+ # The standard list page token.
102
+ # @param [String] fields
103
+ # Selector specifying which fields to include in a partial response.
104
+ # @param [String] quota_user
105
+ # Available to use for quota purposes for server-side applications. Can be any
106
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
107
+ # @param [Google::Apis::RequestOptions] options
108
+ # Request-specific options
109
+ #
110
+ # @yield [result, err] Result & error if block supplied
111
+ # @yieldparam result [Google::Apis::OsconfigV1::ListOperationsResponse] parsed result object
112
+ # @yieldparam err [StandardError] error object if request failed
113
+ #
114
+ # @return [Google::Apis::OsconfigV1::ListOperationsResponse]
115
+ #
116
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
119
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
120
+ command = make_simple_command(:get, 'v1/{+name}', options)
121
+ command.response_representation = Google::Apis::OsconfigV1::ListOperationsResponse::Representation
122
+ command.response_class = Google::Apis::OsconfigV1::ListOperationsResponse
123
+ command.params['name'] = name unless name.nil?
124
+ command.query['filter'] = filter unless filter.nil?
125
+ command.query['pageSize'] = page_size unless page_size.nil?
126
+ command.query['pageToken'] = page_token unless page_token.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
53
132
  # Create an OS Config patch deployment.
54
133
  # @param [String] parent
55
134
  # Required. The project to apply this patch deployment to in the form `projects/*
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-osconfig_v1
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
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.3.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1
57
57
  post_install_message:
58
58
  rdoc_options: []