1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * A client to Cloud Channel API 19 * 20 * <p>The interfaces provided are listed below, along with usage samples. 21 * 22 * <p>======================= CloudChannelReportsServiceClient ======================= 23 * 24 * <p>Service Description: CloudChannelReportsService lets Google Cloud resellers and distributors 25 * retrieve and combine a variety of data in Cloud Channel for multiple products (Google Cloud 26 * Platform (GCP), Google Voice, and Google Workspace.) 27 * 28 * <p>Sample for CloudChannelReportsServiceClient: 29 * 30 * <pre>{@code 31 * // This snippet has been automatically generated and should be regarded as a code template only. 32 * // It will require modifications to work: 33 * // - It may require correct/in-range values for request initialization. 34 * // - It may require specifying regional endpoints when creating the service client as shown in 35 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 36 * try (CloudChannelReportsServiceClient cloudChannelReportsServiceClient = 37 * CloudChannelReportsServiceClient.create()) { 38 * RunReportJobRequest request = 39 * RunReportJobRequest.newBuilder() 40 * .setName(ReportName.of("[ACCOUNT]", "[REPORT]").toString()) 41 * .setDateRange(DateRange.newBuilder().build()) 42 * .setFilter("filter-1274492040") 43 * .setLanguageCode("languageCode-2092349083") 44 * .build(); 45 * RunReportJobResponse response = 46 * cloudChannelReportsServiceClient.runReportJobAsync(request).get(); 47 * } 48 * }</pre> 49 * 50 * <p>======================= CloudChannelServiceClient ======================= 51 * 52 * <p>Service Description: CloudChannelService lets Google cloud resellers and distributors manage 53 * their customers, channel partners, entitlements, and reports. 54 * 55 * <p>Using this service: 1. Resellers and distributors can manage a customer entity. 2. 56 * Distributors can register an authorized reseller in their channel and provide them with delegated 57 * admin access. 3. Resellers and distributors can manage customer entitlements. 58 * 59 * <p>CloudChannelService exposes the following resources: - 60 * [Customer][google.cloud.channel.v1.Customer]s: An entity-usually an enterprise-managed by a 61 * reseller or distributor. 62 * 63 * <p>- [Entitlement][google.cloud.channel.v1.Entitlement]s: An entity that provides a customer with 64 * the means to use a service. Entitlements are created or updated as a result of a successful 65 * fulfillment. 66 * 67 * <p>- [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s: An entity that identifies 68 * links between distributors and their indirect resellers in a channel. 69 * 70 * <p>Sample for CloudChannelServiceClient: 71 * 72 * <pre>{@code 73 * // This snippet has been automatically generated and should be regarded as a code template only. 74 * // It will require modifications to work: 75 * // - It may require correct/in-range values for request initialization. 76 * // - It may require specifying regional endpoints when creating the service client as shown in 77 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 78 * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { 79 * CustomerName name = CustomerName.of("[ACCOUNT]", "[CUSTOMER]"); 80 * Customer response = cloudChannelServiceClient.getCustomer(name); 81 * } 82 * }</pre> 83 */ 84 @Generated("by gapic-generator-java") 85 package com.google.cloud.channel.v1; 86 87 import javax.annotation.Generated; 88