From fba03cbdb0abd85c7821d8c0428c23a2cd7b14c9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 22 Jul 2022 07:14:10 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1/androidenterprise-api.json | 6 +- androidenterprise/v1/androidenterprise-gen.go | 29 +- chat/v1/chat-api.json | 85 +-- chat/v1/chat-gen.go | 153 +----- cloudchannel/v1/cloudchannel-api.json | 6 +- cloudchannel/v1/cloudchannel-gen.go | 4 + datastream/v1/datastream-api.json | 22 +- datastream/v1/datastream-gen.go | 17 + .../v1/servicenetworking-api.json | 6 +- servicenetworking/v1/servicenetworking-gen.go | 6 +- .../v1beta/servicenetworking-api.json | 6 +- .../v1beta/servicenetworking-gen.go | 6 +- .../v1/streetviewpublish-api.json | 8 +- streetviewpublish/v1/streetviewpublish-gen.go | 22 +- vmmigration/v1/vmmigration-api.json | 140 +---- vmmigration/v1/vmmigration-gen.go | 498 +----------------- 16 files changed, 166 insertions(+), 848 deletions(-) diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index a4929084112..8d9db2875b6 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -2610,7 +2610,7 @@ } } }, - "revision": "20220407", + "revision": "20220720", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -3948,6 +3948,10 @@ "description": "A Products resource represents an app in the Google Play store that is available to at least some users in the enterprise. (Some apps are restricted to a single enterprise, and no information about them is made available outside that enterprise.) The information provided for each product (localized name, icon, link to the full Google Play details page) is intended to allow a basic representation of the product within an EMM user interface.", "id": "Product", "properties": { + "appRestrictionsSchema": { + "$ref": "AppRestrictionsSchema", + "description": "The app restriction schema" + }, "appTracks": { "description": "The tracks visible to the enterprise.", "items": { diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 3d86b791356..275ed960c08 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -2720,6 +2720,9 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // the full Google Play details page) is intended to allow a basic // representation of the product within an EMM user interface. type Product struct { + // AppRestrictionsSchema: The app restriction schema + AppRestrictionsSchema *AppRestrictionsSchema `json:"appRestrictionsSchema,omitempty"` + // AppTracks: The tracks visible to the enterprise. AppTracks []*TrackInfo `json:"appTracks,omitempty"` @@ -2844,20 +2847,22 @@ type Product struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AppTracks") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "AppRestrictionsSchema") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppTracks") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AppRestrictionsSchema") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index dd85da76913..79e637cf9c3 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -642,7 +642,7 @@ } } }, - "revision": "20220706", + "revision": "20220716", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1266,7 +1266,7 @@ "type": "array" }, "persistValues": { - "description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. When using [LoadIndicator.NONE](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for actions, `persist_values` = `true`is recommended, as it ensures that any changes made by the user after form or on change actions are sent to the server are not overwritten by the response. If `false`, the form values are cleared when the action is triggered. When `persist_values` is set to `false`, it is strongly recommended that the card use [LoadIndicator.SPINNER](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for all actions, as this locks the UI to ensure no changes are made by the user while the action is being processed.", + "description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. When using [LoadIndicator.NONE](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for actions, `persist_values` = `true`is recommended, as it ensures that any changes made by the user after form or on change actions are sent to the server are not overwritten by the response. If `false`, the form values are cleared when the action is triggered. When `persist_values` is set to `false`, it is strongly recommended that the card use [LoadIndicator.SPINNER](workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) for all actions, as this locks the UI to ensure no changes are made by the user while the action is being processed. Not supported by Google Chat apps.", "type": "boolean" } }, @@ -1287,25 +1287,6 @@ }, "type": "object" }, - "GoogleAppsCardV1AppUri": { - "description": "Represents the platform specific uri/intent to open for each client.", - "id": "GoogleAppsCardV1AppUri", - "properties": { - "androidIntent": { - "$ref": "GoogleAppsCardV1Intent", - "description": "An intent object to be opened in the corresponding android hosting app." - }, - "companionUri": { - "description": "A companion uri string to be opened in the chat companion window. on the web.", - "type": "string" - }, - "iosUri": { - "description": "A uri string to be opened in the corresponding iOS hosting app.", - "type": "string" - } - }, - "type": "object" - }, "GoogleAppsCardV1BorderStyle": { "description": "Represents the complete border style applied to widgets.", "id": "GoogleAppsCardV1BorderStyle", @@ -1393,16 +1374,16 @@ "type": "array" }, "displayStyle": { - "description": "The display style for `peekCardHeader`.", + "description": "The `peekCardHeader` display style for. Not supported by Google Chat apps.", "enum": [ "DISPLAY_STYLE_UNSPECIFIED", "PEEK", "REPLACE" ], "enumDescriptions": [ - "Default value. Do not use.", + "Do not use.", "The header of the card appears at the bottom of the sidebar, partially covering the current top card of the stack. Clicking the header pops the card into the card stack. If the card has no header, a generated header is used instead.", - "The card is shown by replacing the view of the top card in the card stack." + "Default value. The card is shown by replacing the view of the top card in the card stack." ], "type": "string" }, @@ -1420,7 +1401,7 @@ }, "peekCardHeader": { "$ref": "GoogleAppsCardV1CardHeader", - "description": "When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards." + "description": "When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards. Not supported by Google Chat apps." }, "sections": { "description": "Sections are separated by a line divider.", @@ -1593,21 +1574,6 @@ "properties": {}, "type": "object" }, - "GoogleAppsCardV1ExtraData": { - "description": "Extra data for an android intent. Valid keys are defined in the hosting app contract.", - "id": "GoogleAppsCardV1ExtraData", - "properties": { - "key": { - "description": "A key for the intent extra data.", - "type": "string" - }, - "value": { - "description": "Value for the given extra data key.", - "type": "string" - } - }, - "type": "object" - }, "GoogleAppsCardV1Grid": { "description": "Represents a Grid widget that displays items in a configurable grid layout.", "id": "GoogleAppsCardV1Grid", @@ -1794,24 +1760,6 @@ }, "type": "object" }, - "GoogleAppsCardV1Intent": { - "description": "Android intent.", - "id": "GoogleAppsCardV1Intent", - "properties": { - "extraData": { - "description": "A list of extra data for the android intent. For example, for a calendar event edit intent, the event title information can be passed as extra data.", - "items": { - "$ref": "GoogleAppsCardV1ExtraData" - }, - "type": "array" - }, - "intentAction": { - "description": "An android intent action string for the {@link android.content.Intent} object. For example: for the view intent action type, a valid value will be android.content.Intent.ACTION_VIEW.", - "type": "string" - } - }, - "type": "object" - }, "GoogleAppsCardV1OnClick": { "description": "Represents the response to an `onClick` event.", "id": "GoogleAppsCardV1OnClick", @@ -1839,10 +1787,6 @@ "description": "Represents an `onClick` event that opens a hyperlink.", "id": "GoogleAppsCardV1OpenLink", "properties": { - "appUri": { - "$ref": "GoogleAppsCardV1AppUri", - "description": "Represents the platform specific uri/intent to open on each client. For example: A companion_url will open in a companion window on the web. An iOS URL and android intent will open in the corresponding hosting apps. If these platform specific URLs can't be handled correctly, i.e. if the companion isn't supported on web and the hosting apps aren't available on the mobile platforms then the `uri` will open in a new browser window on all the platforms." - }, "onClose": { "description": "Whether the client forgets about a link after opening it, or observes it until the window closes. Not supported by Chat apps.", "enum": [ @@ -2072,7 +2016,7 @@ "type": "object" }, "GoogleAppsCardV1TextParagraph": { - "description": "A paragraph of text that supports formatting. See [Text formatting](workspace/add-ons/concepts/widgets#text_formatting\") for details.", + "description": "A paragraph of text that supports formatting. See [Text formatting](workspace/add-ons/concepts/widgets#text_formatting) for details.", "id": "GoogleAppsCardV1TextParagraph", "properties": { "text": { @@ -2453,6 +2397,21 @@ "description": "Resource name of the membership. Format: spaces/{space}/members/{member}", "type": "string" }, + "role": { + "description": "Output only. User's role within a Chat space, which determines their permitted actions in the space.", + "enum": [ + "MEMBERSHIP_ROLE_UNSPECIFIED", + "ROLE_MEMBER", + "ROLE_MANAGER" + ], + "enumDescriptions": [ + "Default value. The user isn't a member of the space, but might be invited.", + "A member of the space. The user has basic permissions, like sending messages to the space. In 1:1 and unnamed group conversations, everyone has this role.", + "A space manager. The user has all basic permissions plus administrative permissions that allow them to manage the space, like adding or removing members. Only supports SpaceType.SPACE." + ], + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. State of the membership.", "enum": [ diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index c4609ad13e9..328a4d9b302 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1319,7 +1319,8 @@ type GoogleAppsCardV1Action struct { // the card use LoadIndicator.SPINNER // (workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) // for all actions, as this locks the UI to ensure no changes are made - // by the user while the action is being processed. + // by the user while the action is being processed. Not supported by + // Google Chat apps. PersistValues bool `json:"persistValues,omitempty"` // ForceSendFields is a list of field names (e.g. "Function") to @@ -1380,44 +1381,6 @@ func (s *GoogleAppsCardV1ActionParameter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAppsCardV1AppUri: Represents the platform specific uri/intent -// to open for each client. -type GoogleAppsCardV1AppUri struct { - // AndroidIntent: An intent object to be opened in the corresponding - // android hosting app. - AndroidIntent *GoogleAppsCardV1Intent `json:"androidIntent,omitempty"` - - // CompanionUri: A companion uri string to be opened in the chat - // companion window. on the web. - CompanionUri string `json:"companionUri,omitempty"` - - // IosUri: A uri string to be opened in the corresponding iOS hosting - // app. - IosUri string `json:"iosUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AndroidIntent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AndroidIntent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAppsCardV1AppUri) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAppsCardV1AppUri - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleAppsCardV1BorderStyle: Represents the complete border style // applied to widgets. type GoogleAppsCardV1BorderStyle struct { @@ -1565,16 +1528,17 @@ type GoogleAppsCardV1Card struct { // "url": "https://example.com/feedback" } } } ] ``` CardActions []*GoogleAppsCardV1CardAction `json:"cardActions,omitempty"` - // DisplayStyle: The display style for `peekCardHeader`. + // DisplayStyle: The `peekCardHeader` display style for. Not supported + // by Google Chat apps. // // Possible values: - // "DISPLAY_STYLE_UNSPECIFIED" - Default value. Do not use. + // "DISPLAY_STYLE_UNSPECIFIED" - Do not use. // "PEEK" - The header of the card appears at the bottom of the // sidebar, partially covering the current top card of the stack. // Clicking the header pops the card into the card stack. If the card // has no header, a generated header is used instead. - // "REPLACE" - The card is shown by replacing the view of the top card - // in the card stack. + // "REPLACE" - Default value. The card is shown by replacing the view + // of the top card in the card stack. DisplayStyle string `json:"displayStyle,omitempty"` // FixedFooter: The fixed footer shown at the bottom of this card. @@ -1589,7 +1553,8 @@ type GoogleAppsCardV1Card struct { // PeekCardHeader: When displaying contextual content, the peek card // header acts as a placeholder so that the user can navigate forward - // between the homepage cards and the contextual cards. + // between the homepage cards and the contextual cards. Not supported by + // Google Chat apps. PeekCardHeader *GoogleAppsCardV1CardHeader `json:"peekCardHeader,omitempty"` // Sections: Sections are separated by a line divider. @@ -1859,38 +1824,6 @@ func (s *GoogleAppsCardV1DecoratedText) MarshalJSON() ([]byte, error) { type GoogleAppsCardV1Divider struct { } -// GoogleAppsCardV1ExtraData: Extra data for an android intent. Valid -// keys are defined in the hosting app contract. -type GoogleAppsCardV1ExtraData struct { - // Key: A key for the intent extra data. - Key string `json:"key,omitempty"` - - // Value: Value for the given extra data key. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAppsCardV1ExtraData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAppsCardV1ExtraData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleAppsCardV1Grid: Represents a Grid widget that displays items in // a configurable grid layout. type GoogleAppsCardV1Grid struct { @@ -2167,42 +2100,6 @@ func (s *GoogleAppsCardV1ImageCropStyle) UnmarshalJSON(data []byte) error { return nil } -// GoogleAppsCardV1Intent: Android intent. -type GoogleAppsCardV1Intent struct { - // ExtraData: A list of extra data for the android intent. For example, - // for a calendar event edit intent, the event title information can be - // passed as extra data. - ExtraData []*GoogleAppsCardV1ExtraData `json:"extraData,omitempty"` - - // IntentAction: An android intent action string for the {@link - // android.content.Intent} object. For example: for the view intent - // action type, a valid value will be - // android.content.Intent.ACTION_VIEW. - IntentAction string `json:"intentAction,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExtraData") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExtraData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleAppsCardV1Intent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAppsCardV1Intent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleAppsCardV1OnClick: Represents the response to an `onClick` // event. type GoogleAppsCardV1OnClick struct { @@ -2249,15 +2146,6 @@ func (s *GoogleAppsCardV1OnClick) MarshalJSON() ([]byte, error) { // GoogleAppsCardV1OpenLink: Represents an `onClick` event that opens a // hyperlink. type GoogleAppsCardV1OpenLink struct { - // AppUri: Represents the platform specific uri/intent to open on each - // client. For example: A companion_url will open in a companion window - // on the web. An iOS URL and android intent will open in the - // corresponding hosting apps. If these platform specific URLs can't be - // handled correctly, i.e. if the companion isn't supported on web and - // the hosting apps aren't available on the mobile platforms then the - // `uri` will open in a new browser window on all the platforms. - AppUri *GoogleAppsCardV1AppUri `json:"appUri,omitempty"` - // OnClose: Whether the client forgets about a link after opening it, or // observes it until the window closes. Not supported by Chat apps. // @@ -2282,7 +2170,7 @@ type GoogleAppsCardV1OpenLink struct { // Url: The URL to open. Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppUri") to + // ForceSendFields is a list of field names (e.g. "OnClose") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2290,8 +2178,8 @@ type GoogleAppsCardV1OpenLink struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppUri") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "OnClose") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2604,7 +2492,7 @@ func (s *GoogleAppsCardV1TextInput) MarshalJSON() ([]byte, error) { // GoogleAppsCardV1TextParagraph: A paragraph of text that supports // formatting. See Text formatting -// (workspace/add-ons/concepts/widgets#text_formatting") for details. +// (workspace/add-ons/concepts/widgets#text_formatting) for details. type GoogleAppsCardV1TextParagraph struct { // Text: The text that's shown in the widget. Text string `json:"text,omitempty"` @@ -3146,6 +3034,21 @@ type Membership struct { // spaces/{space}/members/{member} Name string `json:"name,omitempty"` + // Role: Output only. User's role within a Chat space, which determines + // their permitted actions in the space. + // + // Possible values: + // "MEMBERSHIP_ROLE_UNSPECIFIED" - Default value. The user isn't a + // member of the space, but might be invited. + // "ROLE_MEMBER" - A member of the space. The user has basic + // permissions, like sending messages to the space. In 1:1 and unnamed + // group conversations, everyone has this role. + // "ROLE_MANAGER" - A space manager. The user has all basic + // permissions plus administrative permissions that allow them to manage + // the space, like adding or removing members. Only supports + // SpaceType.SPACE. + Role string `json:"role,omitempty"` + // State: Output only. State of the membership. // // Possible values: diff --git a/cloudchannel/v1/cloudchannel-api.json b/cloudchannel/v1/cloudchannel-api.json index 21b24b89b36..75d78857ccb 100644 --- a/cloudchannel/v1/cloudchannel-api.json +++ b/cloudchannel/v1/cloudchannel-api.json @@ -1901,7 +1901,7 @@ } } }, - "revision": "20220625", + "revision": "20220720", "rootUrl": "https://cloudchannel.googleapis.com/", "schemas": { "GoogleCloudChannelV1ActivateEntitlementRequest": { @@ -3019,6 +3019,10 @@ "$ref": "GoogleCloudChannelV1Constraints", "description": "Constraints on transacting the Offer." }, + "dealCode": { + "description": "The deal code of the offer to get a special promotion or discount.", + "type": "string" + }, "endTime": { "description": "Output only. End of the Offer validity time.", "format": "google-datetime", diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index f361eaaf441..b67aad3e051 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -2167,6 +2167,10 @@ type GoogleCloudChannelV1Offer struct { // Constraints: Constraints on transacting the Offer. Constraints *GoogleCloudChannelV1Constraints `json:"constraints,omitempty"` + // DealCode: The deal code of the offer to get a special promotion or + // discount. + DealCode string `json:"dealCode,omitempty"` + // EndTime: Output only. End of the Offer validity time. EndTime string `json:"endTime,omitempty"` diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index 489f5ab240d..05552030d63 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1217,7 +1217,7 @@ } } }, - "revision": "20220629", + "revision": "20220711", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -1929,6 +1929,11 @@ "includeObjects": { "$ref": "MysqlRdbms", "description": "MySQL objects to retrieve from the source." + }, + "maxConcurrentCdcTasks": { + "description": "Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -2213,6 +2218,15 @@ "includeObjects": { "$ref": "OracleRdbms", "description": "Oracle objects to include in the stream." + }, + "maxConcurrentCdcTasks": { + "description": "Maximum number of concurrent CDC tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.", + "format": "int32", + "type": "integer" + }, + "streamLargeObjects": { + "$ref": "StreamLargeObjects", + "description": "Stream large object values." } }, "type": "object" @@ -2545,6 +2559,12 @@ }, "type": "object" }, + "StreamLargeObjects": { + "description": "Configuration to stream large object values.", + "id": "StreamLargeObjects", + "properties": {}, + "type": "object" + }, "StreamObject": { "description": "A specific stream object (e.g a specific DB table).", "id": "StreamObject", diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 2f7a05795ed..6edec03cbc5 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -1314,6 +1314,11 @@ type MysqlSourceConfig struct { // IncludeObjects: MySQL objects to retrieve from the source. IncludeObjects *MysqlRdbms `json:"includeObjects,omitempty"` + // MaxConcurrentCdcTasks: Maximum number of concurrent CDC tasks. The + // number should be non negative. If not set (or set to 0), the system's + // default value will be used. + MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExcludeObjects") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1738,6 +1743,14 @@ type OracleSourceConfig struct { // IncludeObjects: Oracle objects to include in the stream. IncludeObjects *OracleRdbms `json:"includeObjects,omitempty"` + // MaxConcurrentCdcTasks: Maximum number of concurrent CDC tasks. The + // number should be non negative. If not set (or set to 0), the system's + // default value will be used. + MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"` + + // StreamLargeObjects: Stream large object values. + StreamLargeObjects *StreamLargeObjects `json:"streamLargeObjects,omitempty"` + // ForceSendFields is a list of field names (e.g. "DropLargeObjects") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2224,6 +2237,10 @@ func (s *Stream) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// StreamLargeObjects: Configuration to stream large object values. +type StreamLargeObjects struct { +} + // StreamObject: A specific stream object (e.g a specific DB table). type StreamObject struct { // BackfillJob: The latest backfill job that was initiated for the diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index c4bc62a6d52..963636bf081 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -865,7 +865,7 @@ } } }, - "revision": "20220711", + "revision": "20220720", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1312,11 +1312,11 @@ "type": "string" }, "umbrellaNetwork": { - "description": "The name of network in Cloud SQL umbrella project.", + "description": "The name of the umbrella network in the Cloud SQL umbrella project.", "type": "string" }, "umbrellaProject": { - "description": "The project number of Cloud SQL umbrella project.", + "description": "The project number of the Cloud SQL umbrella project.", "format": "int64", "type": "string" } diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 9f0027ed859..83274330c2a 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -1129,10 +1129,12 @@ type CloudSQLConfig struct { // Service: Peering service used for peering with the Cloud SQL project. Service string `json:"service,omitempty"` - // UmbrellaNetwork: The name of network in Cloud SQL umbrella project. + // UmbrellaNetwork: The name of the umbrella network in the Cloud SQL + // umbrella project. UmbrellaNetwork string `json:"umbrellaNetwork,omitempty"` - // UmbrellaProject: The project number of Cloud SQL umbrella project. + // UmbrellaProject: The project number of the Cloud SQL umbrella + // project. UmbrellaProject int64 `json:"umbrellaProject,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Service") to diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 39f5cec8364..89fb46c692e 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20220711", + "revision": "20220720", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -653,11 +653,11 @@ "type": "string" }, "umbrellaNetwork": { - "description": "The name of network in Cloud SQL umbrella project.", + "description": "The name of the umbrella network in the Cloud SQL umbrella project.", "type": "string" }, "umbrellaProject": { - "description": "The project number of Cloud SQL umbrella project.", + "description": "The project number of the Cloud SQL umbrella project.", "format": "int64", "type": "string" } diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 86d34c7cf9c..e1494fd2042 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -857,10 +857,12 @@ type CloudSQLConfig struct { // Service: Peering service used for peering with the Cloud SQL project. Service string `json:"service,omitempty"` - // UmbrellaNetwork: The name of network in Cloud SQL umbrella project. + // UmbrellaNetwork: The name of the umbrella network in the Cloud SQL + // umbrella project. UmbrellaNetwork string `json:"umbrellaNetwork,omitempty"` - // UmbrellaProject: The project number of Cloud SQL umbrella project. + // UmbrellaProject: The project number of the Cloud SQL umbrella + // project. UmbrellaProject int64 `json:"umbrellaProject,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Service") to diff --git a/streetviewpublish/v1/streetviewpublish-api.json b/streetviewpublish/v1/streetviewpublish-api.json index c0490b43eec..77eff2f9082 100644 --- a/streetviewpublish/v1/streetviewpublish-api.json +++ b/streetviewpublish/v1/streetviewpublish-api.json @@ -533,7 +533,7 @@ } } }, - "revision": "20220719", + "revision": "20220720", "rootUrl": "https://streetviewpublish.googleapis.com/", "schemas": { "BatchDeletePhotosRequest": { @@ -632,7 +632,7 @@ "format": "google-duration", "type": "string" }, - "gapTime": { + "gapStartTime": { "description": "Relative time (from the start of the video stream) when the gap started.", "format": "google-duration", "type": "string" @@ -677,7 +677,7 @@ "format": "google-duration", "type": "string" }, - "gapTime": { + "gapStartTime": { "description": "Relative time (from the start of the video stream) when the gap started.", "format": "google-duration", "type": "string" @@ -812,7 +812,7 @@ "description": "Details related to ProcessingFailureReason#NOT_OUTDOORS. If there are multiple indoor frames found, the first frame is recorded here.", "id": "NotOutdoorsFailureDetails", "properties": { - "time": { + "startTime": { "description": "Relative time (from the start of the video stream) when an indoor frame was found.", "format": "google-duration", "type": "string" diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index f65007acd7b..2998d3a0339 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -390,9 +390,9 @@ type GpsDataGapFailureDetails struct { // GapDuration: The duration of the gap in GPS data that was found. GapDuration string `json:"gapDuration,omitempty"` - // GapTime: Relative time (from the start of the video stream) when the - // gap started. - GapTime string `json:"gapTime,omitempty"` + // GapStartTime: Relative time (from the start of the video stream) when + // the gap started. + GapStartTime string `json:"gapStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "GapDuration") to // unconditionally include in API requests. By default, fields with @@ -461,9 +461,9 @@ type ImuDataGapFailureDetails struct { // GapDuration: The duration of the gap in IMU data that was found. GapDuration string `json:"gapDuration,omitempty"` - // GapTime: Relative time (from the start of the video stream) when the - // gap started. - GapTime string `json:"gapTime,omitempty"` + // GapStartTime: Relative time (from the start of the video stream) when + // the gap started. + GapStartTime string `json:"gapStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "GapDuration") to // unconditionally include in API requests. By default, fields with @@ -795,11 +795,11 @@ func (s *Measurement3d) UnmarshalJSON(data []byte) error { // ProcessingFailureReason#NOT_OUTDOORS. If there are multiple indoor // frames found, the first frame is recorded here. type NotOutdoorsFailureDetails struct { - // Time: Relative time (from the start of the video stream) when an + // StartTime: Relative time (from the start of the video stream) when an // indoor frame was found. - Time string `json:"time,omitempty"` + StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Time") to + // ForceSendFields is a list of field names (e.g. "StartTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -807,8 +807,8 @@ type NotOutdoorsFailureDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Time") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "StartTime") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index ebc18ceb22b..c676a34f950 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -12,9 +12,9 @@ "baseUrl": "https://vmmigration.googleapis.com/", "batchPath": "batch", "canonicalName": "VM Migration Service", - "description": "Use the Migrate for Compute Engine API to programmatically migrate workloads. ", + "description": "Use the Migrate to Virtual Machines API to programmatically migrate workloads. ", "discoveryVersion": "v1", - "documentationLink": "https://cloud.google.com/migrate/compute-engine", + "documentationLink": "https://cloud.google.com/migrate/virtual-machines", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -1532,81 +1532,6 @@ ] } } - }, - "replicationCycles": { - "methods": { - "get": { - "description": "Gets details of a single ReplicationCycle.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles/{replicationCyclesId}", - "httpMethod": "GET", - "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the ReplicationCycle.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+/replicationCycles/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "ReplicationCycle" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists ReplicationCycles in a given MigratingVM.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles", - "httpMethod": "GET", - "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. The filter request.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. the order by fields for the result.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of replication cycles to return. The service may return fewer than this value. If unspecified, at most 100 migrating VMs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Required. A page token, received from a previous `ListReplicationCycles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReplicationCycles` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent, which owns this collection of ReplicationCycles.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/replicationCycles", - "response": { - "$ref": "ListReplicationCyclesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } }, @@ -1972,7 +1897,7 @@ } } }, - "revision": "20220616", + "revision": "20220714", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AddGroupMigrationRequest": { @@ -2051,32 +1976,6 @@ }, "type": "object" }, - "AwsSourceVmDetails": { - "description": "Represent the source AWS VM details.", - "id": "AwsSourceVmDetails", - "properties": { - "committedStorageBytes": { - "description": "The total size of the disks being migrated in bytes.", - "format": "int64", - "type": "string" - }, - "firmware": { - "description": "The firmware type of the source VM.", - "enum": [ - "FIRMWARE_UNSPECIFIED", - "EFI", - "BIOS" - ], - "enumDescriptions": [ - "The firmware is unknown.", - "The firmware is EFI.", - "The firmware is BIOS." - ], - "type": "string" - } - }, - "type": "object" - }, "CancelCloneJobRequest": { "description": "Request message for 'CancelCloneJob' request.", "id": "CancelCloneJobRequest", @@ -2885,34 +2784,6 @@ }, "type": "object" }, - "ListReplicationCyclesResponse": { - "description": "Response message for 'ListReplicationCycles' request.", - "id": "ListReplicationCyclesResponse", - "properties": { - "nextPageToken": { - "description": "Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", - "readOnly": true, - "type": "string" - }, - "replicationCycles": { - "description": "Output only. The list of replication cycles response.", - "items": { - "$ref": "ReplicationCycle" - }, - "readOnly": true, - "type": "array" - }, - "unreachable": { - "description": "Output only. Locations that could not be reached.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - } - }, - "type": "object" - }, "ListSourcesResponse": { "description": "Response message for 'ListSources' request.", "id": "ListSourcesResponse", @@ -3050,11 +2921,6 @@ "description": "MigratingVm describes the VM that will be migrated from a Source environment and its replication state.", "id": "MigratingVm", "properties": { - "awsSourceVmDetails": { - "$ref": "AwsSourceVmDetails", - "description": "Output only. Details of the VM from an AWS source.", - "readOnly": true - }, "computeEngineTargetDefaults": { "$ref": "ComputeEngineTargetDefaults", "description": "Details of the target VM in Compute Engine." diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index deefe2ddeca..13ff162474c 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -6,7 +6,7 @@ // Package vmmigration provides access to the VM Migration API. // -// For product documentation, see: https://cloud.google.com/migrate/compute-engine +// For product documentation, see: https://cloud.google.com/migrate/virtual-machines // // Creating a client // @@ -219,7 +219,6 @@ func NewProjectsLocationsSourcesMigratingVmsService(s *Service) *ProjectsLocatio rs := &ProjectsLocationsSourcesMigratingVmsService{s: s} rs.CloneJobs = NewProjectsLocationsSourcesMigratingVmsCloneJobsService(s) rs.CutoverJobs = NewProjectsLocationsSourcesMigratingVmsCutoverJobsService(s) - rs.ReplicationCycles = NewProjectsLocationsSourcesMigratingVmsReplicationCyclesService(s) return rs } @@ -229,8 +228,6 @@ type ProjectsLocationsSourcesMigratingVmsService struct { CloneJobs *ProjectsLocationsSourcesMigratingVmsCloneJobsService CutoverJobs *ProjectsLocationsSourcesMigratingVmsCutoverJobsService - - ReplicationCycles *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService } func NewProjectsLocationsSourcesMigratingVmsCloneJobsService(s *Service) *ProjectsLocationsSourcesMigratingVmsCloneJobsService { @@ -251,15 +248,6 @@ type ProjectsLocationsSourcesMigratingVmsCutoverJobsService struct { s *Service } -func NewProjectsLocationsSourcesMigratingVmsReplicationCyclesService(s *Service) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService { - rs := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesService{s: s} - return rs -} - -type ProjectsLocationsSourcesMigratingVmsReplicationCyclesService struct { - s *Service -} - func NewProjectsLocationsSourcesUtilizationReportsService(s *Service) *ProjectsLocationsSourcesUtilizationReportsService { rs := &ProjectsLocationsSourcesUtilizationReportsService{s: s} return rs @@ -420,45 +408,6 @@ func (s *AvailableUpdates) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AwsSourceVmDetails: Represent the source AWS VM details. -type AwsSourceVmDetails struct { - // CommittedStorageBytes: The total size of the disks being migrated in - // bytes. - CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` - - // Firmware: The firmware type of the source VM. - // - // Possible values: - // "FIRMWARE_UNSPECIFIED" - The firmware is unknown. - // "EFI" - The firmware is EFI. - // "BIOS" - The firmware is BIOS. - Firmware string `json:"firmware,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CommittedStorageBytes") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommittedStorageBytes") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *AwsSourceVmDetails) MarshalJSON() ([]byte, error) { - type NoMethod AwsSourceVmDetails - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CancelCloneJobRequest: Request message for 'CancelCloneJob' request. type CancelCloneJobRequest struct { } @@ -1425,48 +1374,6 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListReplicationCyclesResponse: Response message for -// 'ListReplicationCycles' request. -type ListReplicationCyclesResponse struct { - // NextPageToken: Output only. A token, which can be sent as - // `page_token` to retrieve the next page. If this field is omitted, - // there are no subsequent pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ReplicationCycles: Output only. The list of replication cycles - // response. - ReplicationCycles []*ReplicationCycle `json:"replicationCycles,omitempty"` - - // Unreachable: Output only. Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *ListReplicationCyclesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListReplicationCyclesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ListSourcesResponse: Response message for 'ListSources' request. type ListSourcesResponse struct { // NextPageToken: Output only. A token, which can be sent as @@ -1676,10 +1583,6 @@ func (s *Location) MarshalJSON() ([]byte, error) { // MigratingVm: MigratingVm describes the VM that will be migrated from // a Source environment and its replication state. type MigratingVm struct { - // AwsSourceVmDetails: Output only. Details of the VM from an AWS - // source. - AwsSourceVmDetails *AwsSourceVmDetails `json:"awsSourceVmDetails,omitempty"` - // ComputeEngineTargetDefaults: Details of the target VM in Compute // Engine. ComputeEngineTargetDefaults *ComputeEngineTargetDefaults `json:"computeEngineTargetDefaults,omitempty"` @@ -1781,21 +1684,22 @@ type MigratingVm struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AwsSourceVmDetails") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "ComputeEngineTargetDefaults") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AwsSourceVmDetails") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. + // "ComputeEngineTargetDefaults") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } @@ -2063,10 +1967,6 @@ type ReplicationCycle struct { // StartTime: The time the replication cycle has started. StartTime string `json:"startTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ProgressPercent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -9718,374 +9618,6 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall) Pages(ctx cont } } -// method id "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get": - -type ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets details of a single ReplicationCycle. -// -// - name: The name of the ReplicationCycle. -func (r *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService) Get(name string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { - c := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get" call. -// Exactly one of *ReplicationCycle or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ReplicationCycle.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesGetCall) Do(opts ...googleapi.CallOption) (*ReplicationCycle, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &ReplicationCycle{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets details of a single ReplicationCycle.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles/{replicationCyclesId}", - // "httpMethod": "GET", - // "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the ReplicationCycle.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+/replicationCycles/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "ReplicationCycle" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list": - -type ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists ReplicationCycles in a given MigratingVM. -// -// - parent: The parent, which owns this collection of -// ReplicationCycles. -func (r *ProjectsLocationsSourcesMigratingVmsReplicationCyclesService) List(parent string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c := &ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The filter request. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Filter(filter string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": the order by fields -// for the result. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of replication cycles to return. The service may return fewer than -// this value. If unspecified, at most 100 migrating VMs will be -// returned. The maximum value is 100; values above 100 will be coerced -// to 100. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Required. A page -// token, received from a previous `ListReplicationCycles` call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListReplicationCycles` must match the call -// that provided the page token. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/replicationCycles") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list" call. -// Exactly one of *ListReplicationCyclesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListReplicationCyclesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Do(opts ...googleapi.CallOption) (*ListReplicationCyclesResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &ListReplicationCyclesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists ReplicationCycles in a given MigratingVM.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/replicationCycles", - // "httpMethod": "GET", - // "id": "vmmigration.projects.locations.sources.migratingVms.replicationCycles.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Optional. The filter request.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. the order by fields for the result.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of replication cycles to return. The service may return fewer than this value. If unspecified, at most 100 migrating VMs will be returned. The maximum value is 100; values above 100 will be coerced to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Required. A page token, received from a previous `ListReplicationCycles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReplicationCycles` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent, which owns this collection of ReplicationCycles.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/replicationCycles", - // "response": { - // "$ref": "ListReplicationCyclesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsSourcesMigratingVmsReplicationCyclesListCall) Pages(ctx context.Context, f func(*ListReplicationCyclesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - // method id "vmmigration.projects.locations.sources.utilizationReports.create": type ProjectsLocationsSourcesUtilizationReportsCreateCall struct {